Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Width of the screen.

Status
Not open for further replies.

Serguei

Programmer
Nov 7, 2002
4
US
How wide is the screen in ie with resuloton 800x600?
 
As far as i understand, 800 * 600 is simply the total number of pixels on the screen. Meaning there are a total of 800 pixels for the width.
1 -> 800
|
600
To access the width use this variable
document.body.clientWidth;
document.body.clientHeight;
In Netscape use
innerWidth;
innerHeight;
For specifics on how to use these variables you should go to the Javascript forum.

good luck


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top