Many times while designing websites we face the problem for selecting the resolution for the site. Here is a small tutorial on how we can solve this problem.
document.write ("Your screen resolution is : ");
document.write (screen.width); //prints the width of screen in pixels
document.write ( " by ");
document.write (screen.height); //prints the height of screen in pixels
It shows the resolution of the screen as shown above.
The Rest of the Story
The rest is fairly simple. Just extract the files to a folder and open index.htm file .It will detect the resolution and automatically load the page correct for thsat resolution.I hope that this may help some of the beginners in designing .