class js.html.ClientRect

Available on js

dom/interfaces/base/nsIDOMClientRect.idlScriptable
Represents a rectangular box. The type of box is specified by the method that returns such an object. It is returned by functions like element.getBoundingClientRect .
1.0
11.0
Introduced
Gecko 1.9
Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)


Documentation for this class was provided by MDN.

Instance Fields

var bottom:Float

Y-coordinate, relative to the viewport origin, of the bottom of the rectangle box. Read only.

var height:Float

Height of the rectangle box (This is identical to bottom minus top). Read only.

var left:Float

X-coordinate, relative to the viewport origin, of the left of the rectangle box. Read only.

var right:Float

X-coordinate, relative to the viewport origin, of the right of the rectangle box. Read only.

var top:Float

Y-coordinate, relative to the viewport origin, of the top of the rectangle box. Read only.

var width:Float

Width of the rectangle box (This is identical to right minus left). Read only. <span title="(Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) ">Requires Gecko 1.9.1