Browser Resizing

I just encountered a great tip on how to quickly adjust a browser window to a specific dimension.

Just type any of the following in address bar:

javascript:resizeTo(640, 480);
javascript:resizeTo(800, 600);
javascript:resizeTo(1024, 768);

It gets better!  We can bookmark these as well.

Granted, there are tools that do this as well.  Visual Studio also has the [Browse with...] option that allows the developer to specify the dimensions of the browser when a page is viewed.  However, for a real easy way to view a page at multiple dimensions, the tip above is what I am going to use from now on.

[palermo4.com]

Published Tuesday, December 07, 2004 11:34 PM by Palermo4
Filed under: ,

Comments

# re: Browser Resizing

Wednesday, December 08, 2004 6:34 PM by timh
if you use firefox with the web developer extension, there is a toolbar item, that does it in one click...i can't wait for IE7!

# re: Browser Resizing

Friday, December 10, 2004 2:05 PM by Karl
But: after resizing with the above javascript, the browser size becomes fixed and you will not be able to grab the corner with your mouse and adjust.

# re: Browser Resizing

Saturday, December 11, 2004 6:08 PM by Doug Coombs
The resizeTo also works nicely embedded as inline javascript enabling the developer to specify the window size s/he would prefer for a specific page.

I didn't experience the problem of a fixed window.

Leave a Comment

(required) 
(required) 
(optional)
(required)