One Bad Pixel
All your pixel are belong to us.
«
»

resizing your browser on the fly

I was working on some web development today and found that I needed to resize my browser window to several different sizes for the purpose of testing the page layout for different screen resolutions. I came across a helpful tip and thought I would share it with everyone, since it works excellent (in both FF and IE, and probably others).

I created a bookmarks folder called “Resize Window” and in it, I put several bookmarks. The bookmarks are called 800×600, 1024×768, and 1280×1024. Clever as it may be, those names refer to the size the window will become. In the properties, I set the URL for them (respectively) to
javascript:resizeTo(800,600)
javascript:resizeTo(1024,768)
javascript:resizeTo(1280,1024)

Thats it! Now, directly via your bookmarks you can instantly resize your browser to the desired resolution.

 

3 Responses for “resizing your browser on the fly”

  1. esoteric Says:

    ooh, now that is nice to have. As my screens get bigger, wider and duplicated, this is very nice to know. Now if I can have that dreaded pop up window not be in the center of my primary display 🙂

  2. Mike Says:

    Neat idea!

  3. Jim Says:

    Umm, UltraMon. Popwindows fixed, taskbars on each monitor (with the proper buttons), different wallpaper per monitor.. I thought you knew these things.

Leave a comment!