...

View Full Version : onresize firing on page load



Duffman12
01-16-2009, 09:35 PM
I'm having a problem with window.onresize firing when the page is initially loaded. is it supposed to do that?

itsallkizza
01-16-2009, 09:51 PM
Technically in browsers such as IE, if you open a page in a new tab where the previous page had scrollbars (which affect the window width and height) then it's supposed to fire the resize event (because the window is by certain browser definitions resizing).

mrhoo
01-17-2009, 05:07 PM
To keep IE more in line with the other browsers, attach the resize event after the page has loaded.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum