View Full Version : resizing a window upon opening
flashjones
April 7th, 2010, 09:44 PM
what is the code for having a window resize to a specific size upon the window opening?
3dy
April 8th, 2010, 01:29 AM
I think it's a JavaScript that works only in IE.
Swooter
April 8th, 2010, 03:50 AM
It only works when the window is not maximized and has only one tab open.
So it's pretty useless:
self.resizeTo(800,600);
3dy
April 8th, 2010, 06:51 AM
+1.
flashjones
April 8th, 2010, 11:21 AM
where would you put that first piece of code?
Also would this work? If so where would it go?
window.open("url","window_name","width=800,height=600");
Swooter
April 8th, 2010, 03:37 PM
yes, you can use a popup to control the window size, but popups only work from a link or button. they're blocked when used onload.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.