Window Object

Actions:

The following examples demonstrate some of the properties and methods available for use from the window object.

Navigation:
URL:

Open/Close pages:

Timer events

Timers are handy when you need an action to occur either after a fixed period of time, or repeatedly on an interval. Timers are not reliable, as you cannot guarantee that they will occur at exactly the point in time when you expect them to.

Timers are also not efficient, you may discover your applications running slower than usual when using a timer.

Interval: ms


Current time: n/a

Page Scrolling

Programatically move the current scroll position up or down using JavaScript:

Dialogs and prompts

Message:
Delay: ms

History

Navigate to the previous or next URL in history:


Reload the current page:


Navigate forward or backward to a specific point in the history: