Name

clientLeft, clientTop — NN n/a IE 4 DOM n/a

Synopsis

Read-only

According to Microsoft’s developer documentation, these properties reflect the distance between the “true” left and top edges of the document area and the edges of the element. But see Section 9.2 at the beginning of this chapter for details. To get or set the pixel position of an element in the document, use the pixelLeft and pixelTop properties.

Value

A string value for a length in a variety of units or percentage.

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.