Window size for html page

admin

Administrator
Staff member
How would I open up a html page where it opens up the size of a pop up window.<br />
<br />
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.<!--content-->Use window.resizeTo(width, height)<br />
<br />
<body onload="window.resizeTo(200,200)"><br />
<br />
You are likely to make someone mad, though. This tactic is almost as bad as misusing pop-ups.<!--content-->Hi florida, if I understood you correctly it can be done by:<br />
<br />
<body onLoad="window.resizeTo('800','600')"><!--content-->Thanks!<!--content-->Another question: Is there a way to position the window? It seems to come up in the upper left corner all the time.<!--content-->Use "window.moveTo(x,y)"<!--content-->
 
Back
Top