Public Member Functions | Public Attributes

nsIDOMNSDocument Interface Reference

import "nsIDOMNSDocument.idl";

Collaboration diagram for nsIDOMNSDocument:

List of all members.

Public Member Functions

boolean hasFocus ()
nsIDOMNodeList getElementsByClassName (in DOMString classes)
nsIDOMElement elementFromPoint (in long x, in long y)
 Returns the element from the caller's document at the given point, relative to the upper-left-most point in the (possibly scrolled) window or frame.
void releaseCapture ()
 Release the current mouse capture if it is on an element within this document.

Public Attributes

readonly attribute DOMString characterSet
attribute DOMString dir
readonly attribute nsIDOMLocation location
attribute DOMString title
readonly attribute DOMString contentType
readonly attribute DOMString readyState
readonly attribute DOMString lastModified
readonly attribute DOMString referrer
readonly attribute nsIDOMElement activeElement

Member Function Documentation

nsIDOMElement nsIDOMNSDocument::elementFromPoint ( in long  x,
in long  y 
)

Returns the element from the caller's document at the given point, relative to the upper-left-most point in the (possibly scrolled) window or frame.

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.

This method returns null if either coordinate is negative, or if the specified point lies outside the visible bounds of the document.

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

preliminary spec

nsIDOMNodeList nsIDOMNSDocument::getElementsByClassName ( in DOMString  classes  ) 
boolean nsIDOMNSDocument::hasFocus (  ) 
void nsIDOMNSDocument::releaseCapture (  ) 

Release the current mouse capture if it is on an element within this document.


Member Data Documentation

readonly attribute DOMString nsIDOMNSDocument::characterSet
readonly attribute DOMString nsIDOMNSDocument::contentType
attribute DOMString nsIDOMNSDocument::dir
readonly attribute DOMString nsIDOMNSDocument::lastModified
readonly attribute DOMString nsIDOMNSDocument::readyState
readonly attribute DOMString nsIDOMNSDocument::referrer
attribute DOMString nsIDOMNSDocument::title

The documentation for this interface was generated from the following file: