This interface is part of a chain of interfaces used to represent a window in the DOM.
66
Introduced
Gecko 1.0
Deprecated
Gecko 8.0
Inherits from:
nsIDOMWindow
Last changed in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4)In Gecko 8.0 this Interface was merged into the nsIDOMWindow
interface.
This interface no longer has any members; it exists solely to prevent add-ons that reference it from failing completely. Add-ons should be updated to use nsIDOMWindow instead.
It provides many of the common functions used in JavaScript such as alert()
or open()
.
Note: Because most of
nsIDOMWindowInternal
's functions and attributes are well documented in window
, those articles are linked to rather than re-documented. However, they are not guaranteed to document all available arguments (i.e. see window.prompt
).Method overview
Firefox 3.5 note
The prompt()
and find()
methods changed in Firefox 3.5 to make all their parameters optional; in previous versions, all parameters were required.
void |
boolean |
DOMString [optional] in DOMString aMessage, [optional] in DOMString aInitial, [optional] in DOMString aTitle, [optional] in unsigned long aSavePassword) |
void |
void |
void |
void |
void |
void |
void |
void |
void |
void |
void |
void |
|
|
void |
void |
boolean [optional] in boolean caseSensitive, [optional] in boolean backwards, [optional] in boolean wrapAround, [optional] in boolean wholeWord, [optional] in boolean searchInFrames, [optional] in boolean showDialog) |
DOMString |
DOMString |
|
void |
Attributes
Attribute | Type | Description |
|
nsIDOMWindowInternal |
Readonly: The window object itself. |
|
nsIDOMWindowInternal |
Readonly: Returns an object reference to the window object. |
|
nsIDOMNavigator |
Readonly: Returns a reference to the navigator object. |
|
nsIDOMScreen |
Readonly: Returns a reference to the screen object associated with the window. |
|
nsIDOMHistory |
Readonly: Returns a reference to the History object, which provides an interface for manipulating the browser session history. |
|
nsIDOMWindow |
Readonly: Returns a Window object for the primary content window. |
|
nsIPrompt |
Readonly: |
|
nsIDOMBarProp |
Readonly: Returns the menubar object, whose visibility can be toggled in the window. |
|
nsIDOMBarProp |
Readonly: Returns the toolbar object, whose visibility can be toggled in the window. |
|
nsIDOMBarProp |
Readonly: Returns the locationbar object, whose visibility can be toggled in the window. |
|
nsIDOMBarProp |
Readonly: Returns the personalbar object, whose visibility can be toggled in the window. |
|
nsIDOMBarProp |
Readonly: Returns the statusbar object, whose visibility can be toggled in the window. |
|
nsIDOMBarProp |
Readonly: Returns the window directories toolbar object. |
|
boolean |
Readonly: This property indicates whether the referenced window is closed or not. |
|
nsIDOMCrypto |
Readonly: Returns the browser crypto object, which can then be used to manipulate various browser security features. |
|
nsIDOMPkcs11 |
Obsolete: this property is not supported in newer versions of Firefox. |
|
nsIControllers |
Readonly: Returns the XUL controllers of the chrome window. |
|
nsIDOMWindowInternal |
Returns a reference to the window that opened this current window. |
|
DOMString |
Sets the text in the status bar at the bottom of the browser or returns the previously set text. |
|
DOMString |
Gets/sets the status bar text for the given window. |
|
nsIDOMLocation |
Readonly: Returns a nsIDOMLocation object, which contains information about the URL of the document. |
|
long |
Width of the browser window. |
|
long |
Height of the browser window. |
|
long |
Gets the width of the outside of the browser window. |
|
long |
Gets the height of the outside of the browser window. |
|
long |
The horizontal distance of the left border of the user's browser from the left side of the screen. |
|
long |
The vertical distance of the top border of the user's browser from the top edge of the screen. |
|
long |
Returns the number of pixels that the document has already been scrolled horizontally. |
|
long |
Returns the number of pixels that the document has already been scrolled vertically. |
|
long |
Returns the maximum number of pixels that the document can be scrolled horizontally. |
|
long |
Returns the maximum number of pixels that the document can be scrolled vertically. |
|
unsigned long |
Readonly: Returns the number of frames in the window. |
|
boolean |
Whether the window is displayed in full screen mode or not |
|
nsIDOMElement |
Readonly: The element in which the window is embedded, or null if the window is top-level. |
|
nsIDOMMozURLProperty |
Readonly: A DOM URL object, which provides the Note: Prior to Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4), this attribute was part of |