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

finding width of window in Internet Explorer

Status
Not open for further replies.

happy2b

Programmer
Jan 14, 2008
9
US
The following bit of javascript has an error in the second line shown here. What I'm trying to find is the width of the window:

Code:
if(browserName == 'Internet Explorer') {
		if(document.body.offsetWidth == screen.width) {
		thisOffset = 65;
		} else {
			thisOffset = 0;
		}


.... more code

} else {
.... more code
}


Thanks in advance for all assistance,

Happy2B
 
Since this is a JS question, I'll direct you to the JS forum. I'm sure the guys over there can help you out.
forum216

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top