WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMNSDocument

IID:533a8131-8d0c-4ebf-990b-7fad7cd514ee
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly nsIDOMElement activeElement

readonly DOMString characterSet

readonly DOMString contentType

DOMString dir

readonly DOMString lastModified

readonly nsIDOMLocation location

readonly DOMString referrer

DOMString title


Methods

nsIDOMElement elementFromPoint ( PRInt32 x , PRInt32 y ) nsIBoxObject getBoxObjectFor ( nsIDOMElement elt ) nsIDOMNodeList getElementsByClassName ( DOMString classes ) PRBool hasFocus ( )

nsIDOMElement elementFromPoint ( PRInt32 x , PRInt32 y )

Returns the element visible at the given point, relative to the upper-left-most visible point in the document.

If the element at the given point belongs to another document (such as an iframe's subdocument), the element in the calling document's DOM (e.g. the iframe) is returned. If the element at the given point is anonymous or XBL generated content, such as a textbox's scrollbars, then the first non-anonymous parent element (that is, the textbox) is returned.

If the specified point is outside the visible portion of the document, or either coordinate is negative, this method returns null.

Callers from XUL documents should wait until the onload event has fired before calling this method.

preliminary spec

Arguments:
x
y

nsIBoxObject getBoxObjectFor ( nsIDOMElement elt )

Arguments:
elt

nsIDOMNodeList getElementsByClassName ( DOMString classes )

Arguments:
classes

PRBool hasFocus ( )

Reference documentation is generated from Mozilla's source.