Thread: html question
View Single Post
Old 19th July 2006, 02:17 PM   #2 (permalink)
kj
gimp
 
kj's Avatar
 
Join Date: Aug 2001
Location: Scotland
Posts: 13,964
Band: A band of merry men
kj has disabled reputation
Not recommended because what will happen is the browser window will resize and this pisses off everyone that uses the net. An alternative is to leave the index page and have java script which opens up a new window in your specified size in front of the browser window that causes the popup. This is what many sites use that try and do something similar to what you are looking for.

Taking control of browser windows and sizes away from the user is bad usability.

In saying that, here is the code you should put in your page that resizes when loaded.

Quote:
<body onload="window.resizeTo(400,400)">
replace the numbers with the width and height you require. It works in both latest versions of IE and Firefox.

Last edited by kj : 19th July 2006 at 02:28 PM.
kj is offline   Reply With Quote