Wednesday, January 23, 2008

Testing the resolution compatibility of web pages

I assume that this is a very simple and silly solution but I admit that I do not know many tricks like these. As far as I know, I have seen people changing the resolution of the computer from 1024x768 to 800x600 and so on to check the compatibility of the new web pages. I used to do the same as well until very recently I found a simple javascript to do the same..!!

The trick is - after the page is loaded in the browser, just paste the following javascript into the address bar :

javascript:top.resizeTo(800, 600)

and then press 'enter'. thats it..!! simple. The browser window resizes itself to the 800x600 dimensions which allows us to see how the page looks in 800x600 resolution..!! To check at other resolutions enter the corresponding figures in the parenthesis above and do likewise.

No comments: