Tip for Resizing Your Browser Window

by Pete Freitag

Testing your web sites at lower resolution is always a good idea (no the rest of the world doesn't view web sites at 1680x1050 like web developers sometimes do). Here's a quick tip that will let you resize your browser window to a specific size.

Just type the following in to your address bar and hit enter:

javascript:window.resizeTo(1024,768);

It will resize your window to the size specified. I find it handy to have a bookmarklet for 800x600 and 1024x768. You can drag those two links to your bookmark bar to create bookmarklets.

Comments

todd sharp

Damn Pete - very cool idea. You mean the rest of the world doesn't have 22-24" widescreens?

Martin

Or you could just use the viewport resize options of the Web Developer toolbar FF extension.

jyoseph

Great solution for those who cannot have the developer FF extension. Remember some work places have the machines so locked-down, the thought of installing FF on any of the boxes would make the IT guys knees weak. Great tip, thanks!

Ben

Good point jyoseph. :)

Pete Freitag

I'm glad you guys found it handy... Your Welcome!

MIMI V.

TO CURE MY OVERSIZED BROWSER (ON 98+/SE) I WENT TO DSKTOP>RT CLKD>PROPERTIES> ADVANCED>SETTINGS>SET PIXELS TO 1024X768>CLICKED APPLY>SELECTED YES IN POP-UP>CLICKED OK AND RE-STARTED. NO PROBLEM SINCE