By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,679 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

document.body.offsetTop returns null(always)

pragathik
P: 21
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
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
If IE6 is in strict mode, some of the properties are allocated to document.documentElement. See Viewport properties.
Feb 4 '08 #2

pragathik
P: 21
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
Expert Mod 15k+
P: 16,027
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.