Browser (re)size thingy

We had another one of those infamous screen resolution debates at work today, which reminded me that I once made a little javascript that sets the browser window to specific sizes, and reports the current available content area. I copy-pasted this page together a few years back and was quite surprised to find it still works, even in IE7.

Javascript browser resize and size detection

Please keep in mind that setting your browser to a say 800*600 on a 1024*768 (or better) screen will not give an accurate indication of the available space if you’re designing for users with an actual 800*600 screen. Those users will probably have maximized their browser windows. At it’s maximized setting, the margins are slightly different and the windows taskbar comes into play.

Share and Enjoy:
  • Digg
  • Slashdot
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks
  • Twitter
  • Facebook
  • FriendFeed
  • MySpace
  • Yahoo! Buzz
  • LinkedIn
  • Netvibes
  • RSS
Related posts:
  1. Idea: Folding vertical browser tabs
  2. Firefox tip: keep popups resizable
  3. Getting Adobe AIR to use the default browser under Ubuntu
  4. Google Browser Sync alternatives?
  5. One week of Chrome
Roy | February 26, 2007 | English,Web design | Comments (2)

2 Comments

  1. Doesn’t work for me. I am on IE7.

    Comment by Chris M — March 10, 2007 @ 12:07 pm

  2. @Chris: Do you have any additional toolbars / settings that could influence this? And can you perhaps try with your browser set to windowed mode (as opposed to maximized)? Tnx!

    Comment by Roy — March 10, 2007 @ 12:15 pm

Leave a comment

ss_blog_claim=d470d8430338c3ea2e4510a1b5577fa0