JavaScript DOM Example - Window Object Methods

This is a JavaScript example demonstrating the methods of the window, window.screen, window.navigator, window.location window.history and window.document objects.

window
Open a dialog box with arbitrary text and an ok button
Open a dialog box with arbitrary text, an ok and cancel button
Open a dialog box with arbitrary text, a text field for user input, an ok and cancel button
Move window to a relative position
Move window to an absolute position
Change window size relatively
Change window size to an absolute size
Scroll in relation to previous position ( relatively )
Scroll to an absolute position
Open a new window
Close this window
Run a script every 5th second
Close this script
Run a script in 5 seconds
Close this script
window.navigator
Is JavaScript enabled?
window.location
Surf on to a new location
Reload this page
window.history
Surf backwards
Surf forward
Surf backward / forward