SoFunction
Updated on 2025-04-07

IE and FF compatible functions collected under javascript


//For example, addListener(document,"click",function(){alert('Ah Huinan')})
function addListener(element,e,fn){
if(){
(e,fn,false);
} else {
("on" + e,fn);
}
}