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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

screen height internet explorer strict html

Status
Not open for further replies.

peterpann

Programmer
Jun 19, 2007
63
0
0
GB
How can I find the available screen height in internet explorer with strict html ?
body.offsetWidth works in strict. body.offsetHeight works in transitional but returns 0 in strict.
 
screen height or browser window height?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Code:
alert(screen.height);
alert(screen.availHeight);

The former will give the actual screen height. The latter will give the screen height minus any space taken up for O/S use (e.g. Windows task bar, OSX dock/menu bar, etc).

Hope this helps,

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[blue]@[/blue] Code Couch:
[blue]@[/blue] Twitter:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top