Resizing The Browser

December 3, 2009

Sometimes it's useful to resize a browser to fit into a screen resolution, for example 800x600 or (more commonly these days) 1024x768. This allows you to test using a smaller resolution than you actually have.

You can do this easily in any browser by putting this javascript directly into the url box:


This tip was found in the preview version of Building iPhone Apps with HTML, CSS, and JavaScript: Making App Store Apps Without Objective-C or Cocoa.

There's also a firefox plugin that allows you to do this, along with a myriad of other things useful for development. See for more details.