View Full Version : onresize firing on page load
01-16-2009, 08: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, 08: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, 04:07 PM
To keep IE more in line with the other browsers, attach the resize event after the page has loaded.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.