This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

Skip Navigation skip menu and banner
University of Wyoming

Web Pages
Set the Size of Your Viewer's Browser Window

[pdf version]

Rather than tell a view the best window size for your browser, you can set it yourself.  That way, when the page loads, the Web browser automatically resizes to the desired size.  To pull off this neat little trick, just add a simple little comment to the BODY tag.  For example, if you wanted to automatically resize a page to 800 x 600 pixels, you would use the following code:

<BODYonload="window.resizeTo(800,600)">

Ed.  03/2004

[top]  • Back • Home • Up • Next •

Updated 09/15/2006