It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

IE7 and window width calculation

IE7 and window width calculation

Postby venkatakesava on Fri Oct 30, 2009 2:17 am

Hello everyone,

I am facing problem with the calculation of windowidth in IE7. It work correctly in IE6 and IE8. But it is giving wrong values in IE7. Can some one please help to figureout the problem.

Below is the piece of code i am using to get the window width.

width = window.innerWidth || doc.body.offsetWidth || doc.documentElement.offsetWidth;

PS: The same thing is provide the correct value when resize the window
venkatakesava
 
Posts: 2
Joined: Fri Oct 30, 2009 2:12 am

Who is online

Users browsing this forum: No registered users and 9 guests