Visit Mozilla.org

nsIDOMWindow2

From MDC

Introduced in Gecko 1.9

The nsIDOMWindow interface is the primary interface for a DOM window object. It represents a single window object that may contain child windows if the document in the window contains an HTML frameset document, or if the document contains iframe elements.

Because nsIDOMWindow is frozen, this interface was introduced in Firefox 3 (Gecko 1.9) to allow DOM windows to take on new features. DOM windows implement nsIDOMWindow2, which is a subclass of nsIDOMWindow.

Contents

nsIDOMWindow2 is defined in dom/public/idl/base/nsIDOMWindow2.idl. It is scriptable and unfrozen (hasn't changed since Mozilla 1.9).

Inherits from: nsIDOMWindow

[edit] Attributes

Attribute Type Description
applicationCache nsIDOMOfflineResourceList The application cache object for this window. Read only.
windowRoot nsIDOMEventTarget The window root for this window. This is useful for connecting event listeners to this window as well as every other window nested in that window root. Not accessible from scripts. Read only.

[edit] See also