469,357 Members | 1,691 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

document.body.offsetTop returns null(always)

pragathik
hi,

i have a problem with document.body.offsetTop and document.body.offsetLeft always returns null in my code in IE6.
how can I get the values???? please suggest
Feb 4 '08 #1
3 3983
acoder
16,027 Expert Mod 8TB
If IE6 is in strict mode, some of the properties are allocated to document.documentElement. See Viewport properties.
Feb 4 '08 #2
If IE6 is in strict mode, some of the properties are allocated to document.documentElement. See Viewport properties.
what is strict mode in IE6. is there any setting like that in Options?
Feb 5 '08 #3
acoder
16,027 Expert Mod 8TB
what is strict mode in IE6. is there any setting like that in Options?
Strict mode and quirks mode would depend on the doctype used. Are you using a strict doctype?
Feb 5 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Gernold Schneider | last post: by
5 posts views Thread by simon | last post: by
5 posts views Thread by ernestb08 | last post: by
7 posts views Thread by rynato | last post: by
28 posts views Thread by rahul | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.