import "nsIDOMJSWindow.idl";
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 () |
| 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. | |
| void nsIDOMJSWindow::dump | ( | in DOMString | str | ) |
| long nsIDOMJSWindow::setTimeout | ( | ) |
.. n) are passed to the callback function
| long nsIDOMJSWindow::setInterval | ( | ) |
| void nsIDOMJSWindow::clearTimeout | ( | ) |
Often in existing code these methods are passed undefined, which is a nop so we need to support that as well.
| void nsIDOMJSWindow::clearInterval | ( | ) |
| void nsIDOMJSWindow::setResizable | ( | in boolean | resizable | ) |
| void nsIDOMJSWindow::captureEvents | ( | in long | eventFlags | ) |
| void nsIDOMJSWindow::releaseEvents | ( | in long | eventFlags | ) |
| void nsIDOMJSWindow::routeEvent | ( | in nsIDOMEvent | evt | ) |
| void nsIDOMJSWindow::enableExternalCapture | ( | ) |
| void nsIDOMJSWindow::disableExternalCapture | ( | ) |
| DOMString nsIDOMJSWindow::prompt | ( | ) |
| nsIDOMWindow nsIDOMJSWindow::open | ( | ) |
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.
| nsIDOMWindow nsIDOMJSWindow::openDialog | ( | ) |
| boolean nsIDOMJSWindow::find | ( | ) |
| readonly attribute nsIDOMWindow nsIDOMJSWindow::frames |
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.
1.5.6