Language References
Sets or retrieves the height of the object in the units specified by the CSS height attribute.
HTML |
N/A |
Script |
object.style.posHeight [ = fHeight ] |
fHeight |
Any valid floating-point number. |
The property is read/write with no default value.
Unlike the height property, the posHeight property's value is a floating-point number, not a string. Setting the posHeight property changes the value of the height but leaves the units designator for the property unchanged.
For more information on how to access the dimension and location of objects on the page through the document object model, see Measuring Element Dimension and Location.
The following JScript® ( compatible with ECMA-262 language specification ) example increases the height of the first IMG element by 10 units.
document.all.tags ( "IMG" ).item ( 0 ).style.posHeight += 10;
pixelHeight