IE Bug: Onload Function in Animated Image
Posted by Sergey Koksharov on October 10, 2007 at 15:10pm
Issue with JavaScript Onload Function
In beginning of this year after successfull learning of new IE7 I’ve came face to face to unexplained behaviour of Internet Explorer and only now I can say what this behaviour also exists in IE6 too. (If anybody from you can test in on IE5 and comment here it would be very nice and useful). Essence in the following. When I use onload function for image its must called when function have loaded, but if I use animated image then function called with any new frame loaded. See this example of IE Bug with onload function (make sure what you are using Internet Explorer). For animated images it just loops and never complete. You can make benchmark of IE bug by yourself using following code.