Click to See Complete Forum and Search --> : Window size for html page


florida
01-16-2003, 07:17 AM
How would I open up a html page where it opens up the size of a pop up window.

I know it has something to do with body load? I want to create an html page where everytime i go into the page it is the size of a pop up window.

gil davis
01-16-2003, 07:24 AM
Use window.resizeTo(width, height)

<body onload="window.resizeTo(200,200)">

You are likely to make someone mad, though. This tactic is almost as bad as misusing pop-ups.

swon
01-16-2003, 07:25 AM
Hi florida, if I understood you correctly it can be done by:

<body onLoad="window.resizeTo('800','600')">

florida
01-16-2003, 10:06 AM
Thanks!

florida
01-16-2003, 10:19 AM
Another question: Is there a way to position the window? It seems to come up in the upper left corner all the time.

gil davis
01-16-2003, 11:40 AM
Use "window.moveTo(x,y)"