Jayesh Patel
Filed under - JavaScript, jQuery, jQueryMobile
No Comments so far. Add yours now

addEventListener Vs attachEvent – fixed in IE8

Ex : el=document.getElementById(_this.config.page_id);

if (el.addEventListener) {

el.addEventListener(‘click’, modifyText, false);
} else if (el.attachEvent) {
el.attachEvent(‘onclick’, modifyText);
}

Leave your comment

You must be logged in to post a comment.

Share IT © 2018. All rights reserved.