window.document.body.offsetHeight returns 0


Go Back   Computer Help Articles > Internet Explorer 6
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 04:38 PM
vRam
 
Posts: n/a
Default window.document.body.offsetHeight returns 0

I have sharepoint portal page that has a web part page. The page has a code
to find window.document.body.offsetHeight

It returns valid value the first time. When i go to a different page and
come back to this page the above code returns 0 instead of the actual
offsetHeight.

Why is it not returning the correct value.

When i debug i get the following properties for the body of the document


?window.document.body
{...}
className: ""
id: ""
tagName: "BODY"
parentElement: {...}
style: {...}
onhelp: null
onclick: null
ondblclick: null
onkeydown: null
onkeyup: null
onkeypress: null
onmouseout: null
onmouseover: null
onmousemove: null
onmousedown: null
onmouseup: null
document: {...}
title: ""
language: "javascript"
onselectstart: null
sourceIndex: 0x5
recordNumber: null
lang: ""
offsetLeft: 0x0
offsetTop: 0x0
offsetWidth: 0x0
offsetHeight: 0x0
offsetParent: null
....

Any ideas?

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Find Command returns nothing Sam Bryan Outlook Express 7 01-05-2006 04:41 PM
One-way connection: networked XP/2000 PC's Cheryl Windows XP Network Web 22 01-05-2006 04:11 AM
mouse freezes after computer returns from standby lewisglenn Windows XP General 1 01-05-2006 02:31 AM


All times are GMT. The time now is 10:46 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

window.document.body.offsetHeight returns 0