Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIDOMJSWindow Interface Reference

import "nsIDOMJSWindow.idl";

Inheritance diagram for nsIDOMJSWindow:
Inheritance graph
[legend]
Collaboration diagram for nsIDOMJSWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void dump (in DOMString str)
long setTimeout ()
 These methods take typeless arguments and optional arguments, the first argument is either a function or a string, the second argument must be a number (ms) and the rest of the arguments (2 ...
long setInterval ()
void clearTimeout ()
 These methods take one optional argument that's the timer ID to clear.
void clearInterval ()
void setResizable (in boolean resizable)
void captureEvents (in long eventFlags)
void releaseEvents (in long eventFlags)
void routeEvent (in nsIDOMEvent evt)
void enableExternalCapture ()
void disableExternalCapture ()
DOMString prompt ()
 The prompt method takes up to four arguments, the arguments are message, initial prompt value, title and a save password flag.
nsIDOMWindow open ()
 These are the scriptable versions of nsIDOMWindowInternal::open() and nsIDOMWindowInternal::openDialog() that take 3 optional arguments.
nsIDOMWindow openDialog ()
boolean find ()

Public Attributes

readonly attribute nsIDOMWindow frames
 window.frames in Netscape 4.x and IE is just a reference to the window itself (i.e.

Detailed Description

Definition at line 42 of file nsIDOMJSWindow.idl.


Member Function Documentation

These methods take one optional argument that's the timer ID to clear.

Often in existing code these methods are passed undefined, which is a nop so we need to support that as well.

void nsIDOMJSWindow::dump ( in DOMString  str)

These are the scriptable versions of nsIDOMWindowInternal::open() and nsIDOMWindowInternal::openDialog() that take 3 optional arguments.

Unlike the nsIDOMWindowInternal methods, these methods assume that they are called from JavaScript and hence will look on the JS context stack to determine the caller and hence correct security context for doing their search for an existing named window. Also, these methods will set the default charset on the newly opened window based on the current document charset in the caller.

DOMString nsIDOMJSWindow::prompt ( )

The prompt method takes up to four arguments, the arguments are message, initial prompt value, title and a save password flag.

These methods take typeless arguments and optional arguments, the first argument is either a function or a string, the second argument must be a number (ms) and the rest of the arguments (2 ...

n) are passed to the callback function


Member Data Documentation

window.frames in Netscape 4.x and IE is just a reference to the window itself (i.e.

window.frames === window), but this doesn't make sense from a generic API point of view so that's why this is JS specific.

This property is "replaceable" in JavaScript.

Definition at line 101 of file nsIDOMJSWindow.idl.


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