View Full Version : onresize firing on page load

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?

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).

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.