Although this is a read and write property, it is most likely to be useful for measuring the height of an object to get a numeric value without the trailing px suffix that you get when enquiring the style.height value.
The value in this property will be an integer defined in pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posHeight property for a more generalized value that can be operated on with different measurement units.
See also: | Measurement units, style.height, style.pixelWidth, style.posHeight |
Prev | Home | Next |
style.pixelBottom | Up | style.pixelLeft |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |