Name
pixelHeight, pixelWidth — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
The height and width of the element in pixels. Use these properties
for calculation instead of properties such as
height
and width
, which return
strings including units. Changes to these properties may not be
visible unless the element has its position style attribute set.
Example
var midWidth = document.all.myDIV.style.pixelWidth/2
Value
Integer
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.