Screen JavaScript Tutorial

The availWidth property gets the available pixel width of the user's screen.
This width is minus any toolbar or any other "permanent" objects that may be on the user's screen.