Monday, June 7, 2010

How to resize browser window using Javascript?

When ever we design a website the biggest challenge is to test it against different browser windows.Using JavaScript we can re-size the browser window based on the resolution required.

Cut and paste the following code into the address bar of your browser (one at a time) and then hit enter:

javascript:resizeTo(1024,768)
javascript:resizeTo(800,600)

In browsers with JavaScript enabled, it will re-size the browser window to the size it would maximize to for that resolution.

*Please dont forget to leave a comment before leaving.

No comments:

Post a Comment