View Full Version : Complete List
04-13-2005, 08:25 PM
Is there a discussion/explanation of all the possible DOM Objects??
Well if not, Here's the first question: What is the difference between height and offsetHeight ?
04-13-2005, 11:04 PM
Gecko DOM Reference (http://www.mozilla.org/docs/dom/domref/).
1. height is a CSS attribute. It is a full dynamic attrubte, thus it must be previosely set to be retreived later.
object.style.height (if locally set)
if embeded or external:
window.getComputedStyle(object,null).getPropertyValue(height) //for Moz
2. offsetHeight is a readonly attrubte. It shows the height of an object event there was no previous dimension set up.
3. On the other hand height might be as well the HTML attribute. This case, the syntax is
this is also a dynamic attribute. To manipulate it use setAttribute() method
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.