Tag Archives: IE8

IE8 Browser

HTML5: https://jsfiddle.net/aicccia/cckftqwk/

Posted in Others | Tagged , ,

IE8 Event Listener

Event Listener with Parameter Alternative: if (document.object().addEventListener) { document.object().addEventListener(“event”, function(){ functionName(parameter); }, false); } else { document.object().attachEvent(“onevent”, function(){ functionName(parameter); }); } preventDefault() Alternative: if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false; } stopPropagation() Alternative: if (event.stopPropagation) { event.stopPropagation(); … Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment