windowproperty and all properties on the Window are available directly in scripts. The Window object is also available as
thisin the root scope of a script (ie, outside of any Function).
Opens the specified
- the url to open.
- must be one of:
'_blank'(open in new window, the default),
'_parent'(open in parent page/frame),
'_self'(open in current page/frame),
'_top'(open in top page),
'<name>'(open in the window with the specified name).
- is a comma separated list of
'<name>=<value>'pairs where the valid names are
trueto replace the contents instead of opening a new window.
Displays a message box containing an input box to the user with the specified message. The input box will be prepopulated with
default if it is specified. Returns the String the user typed in the input box if the user clicks ok and
null if they click cancel. Script execution is paused while the message box is displayed. See also
callback to be called before the next time the browser renders a frame to the screen. Must be called each time you'd like to schedule another frame. The
time parameter to callback is the number of milliseconds since the page loaded. Returns a unique handle that can be passed to
cancelAnimationFrame() to stop
callback from being called.
callback to be called repeatedly, every
timeout milliseconds. Any extra parameters after
timeout are passed to
callback. Returns a unique handle that can be passed to
clearInterval() to stop
callback from being called. See also
Called before the page is navigated away from. Return a non-empty String from
listener to display a dialog box that gives the user the option to remain on the current page.
Called when the page navigation changes. See also History.