getBoxObjectFor method (document)
Returns a BoxObject object that represents the bounding rectangle of the specified element in pixels, relative to the upper-left corner of the document.
Note: The support for the getBoxObjectFor method has been removed in Firefox 3.6. Use the getBoundingClientRect method instead.
You can find the related objects in the Supported by objects section below.
|Required. Reference to an element whose bounding rectangle needs to be returned.|
Returns the BoxObject object created from the coordinates.
Example HTML code 1:
This example illustrates the use of the getBoxObjectFor method:
Did you find this example helpful?
User Contributed Comments