asp.net.ph

Skip Navigation Links

posHeight Property

Language References


Sets or retrieves the height of the object in the units specified by the CSS height attribute.

Syntax


HTML N/A
Script object.style.posHeight [ = fHeight ]

Possible Values


fHeight Any valid floating-point number.

The property is read/write with no default value.

Remarks

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.

Example

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;
See Also

pixelHeight



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note