Skip to content Skip to sidebar Skip to footer

The Window.onload Event Is Not Firing In IE8

I stripped down this javascript to be as simple as possible, and it's still not working in IE8. function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.o

Solution 1:

The standard onload event won't work if another script is called using an HTML defer command.

<script for="window" event="onload" defer="1">products.related();</script>

Changing the above to use the standard addLoadEvent() function made it work.


Post a Comment for "The Window.onload Event Is Not Firing In IE8"