Skip to content Skip to sidebar Skip to footer

Capturing Onload Event When Dynamically Loading .js Files?

Is there a capture the onload event when dynamically adding a script tag with JavaScript in IE? The code below works in FireFox and Chrome but not in IE:

Solution 1:

Script tags in IE have use the onreadystatechange event instead of onload: http://unixpapa.com/js/dyna.html


Post a Comment for "Capturing Onload Event When Dynamically Loading .js Files?"