Do you have something that you plan on displaying in your browser that is a specific size? Want to resize the browser viewing area to exactly match it? Want to do all this in a popup window? While, yes, resizing browsers is not a good usability idea, I have come up with a (I think) bulletproof way to size the browser viewport to it's inside dimensions.

The Javascript Inner Viewport Resize Method, allows you to resize the browser to match an exact size and location that you specify. Originally, i built it to automatically display media in a pop-up window nice and centered -- check this out.

But for all you flash pop-up/fullscreen guys that have been crying foul all this time, it's now your day in the sun. Improvements welcome.



Trackbacks
Listed below are links to blogs that reference this entry: Javascript Inner Viewport Resize Method . TrackBack URL for this entry: http://www.hypergeneric.com/darkroom/mt/mt-tb.cgi/9

Comments
April 3, 2009

Hi,

Just wondering if you can help. I stumbled across your viewport inner resize method, which sounds great but I cannot get it to work as desired - the function runs without errors, but the window always shrinks to a tiny square in Firefox 3 and IE6. I fear I may be missing something obvious. I've set up a test page so you can see.

Thanks,
Jim