Public Member Functions | Public Attributes

nsIDOMJSWindow Interface Reference

import "nsIDOMJSWindow.idl";

Collaboration diagram for nsIDOMJSWindow:

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)
 This method is here for backwards compatibility with 4.x only, its implementation is a no-op.
void captureEvents (in long eventFlags)
void releaseEvents (in long eventFlags)
void routeEvent (in nsIDOMEvent evt)
void enableExternalCapture ()
void disableExternalCapture ()
nsIDOMWindow open ([optional] in DOMString url,[optional] in DOMString name,[optional] in DOMString options)
 This is the scriptable version of nsIDOMWindowInternal::open() that takes 3 optional arguments.
nsIDOMWindow openDialog ([optional] in DOMString url,[optional] in DOMString name,[optional] in DOMString options)
 This is the scriptable version of nsIDOMWindowInternal::openDialog() that takes 3 optional arguments, plus any additional arguments are passed on as arguments on the dialog's window object (window.arguments).

Public Attributes

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

Member Function Documentation

void nsIDOMJSWindow::captureEvents ( in long  eventFlags  ) 
Deprecated:
These are old Netscape 4 methods.

Do not use, the implementation is no-op.

void nsIDOMJSWindow::clearInterval (  ) 
void nsIDOMJSWindow::clearTimeout (  ) 

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::disableExternalCapture (  ) 
void nsIDOMJSWindow::dump ( in DOMString  str  ) 
void nsIDOMJSWindow::enableExternalCapture (  ) 
nsIDOMWindow nsIDOMJSWindow::open ( [optional] in DOMString  url,
[optional] in DOMString  name,
[optional] in DOMString  options 
)

This is the scriptable version of nsIDOMWindowInternal::open() that takes 3 optional arguments.

Its binary name is OpenJS to avoid colliding with nsIDOMWindowInternal::open(), which has the same signature. The reason we can't have that collision is that the implementation needs to know whether it was called from JS or not.

IOW, DO NOT CALL THIS FROM C++

nsIDOMWindow nsIDOMJSWindow::openDialog ( [optional] in DOMString  url,
[optional] in DOMString  name,
[optional] in DOMString  options 
)

This is the scriptable version of nsIDOMWindowInternal::openDialog() that takes 3 optional arguments, plus any additional arguments are passed on as arguments on the dialog's window object (window.arguments).

void nsIDOMJSWindow::releaseEvents ( in long  eventFlags  ) 
void nsIDOMJSWindow::routeEvent ( in nsIDOMEvent  evt  ) 
long nsIDOMJSWindow::setInterval (  ) 
void nsIDOMJSWindow::setResizable ( in boolean  resizable  ) 

This method is here for backwards compatibility with 4.x only, its implementation is a no-op.

long nsIDOMJSWindow::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 ...

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.


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