This page demonstrates some of the window object's methods and properties. At the bottom of the page you will find a list of properties and methods associated with the window object. Before looking at that, let's focus on a few key demonstrations.
First of all, let's put some text in the status bar (located at the bottom of the window).
Next, we'll do a little demo. Click this link. It demonstrates several useful window methods. Notice that nothing happens immediately. That's because we set up a delay using the window.setTimeout() method. A timeout is like an alarm that causes a piece of JavaScript to execute when it goes off. When the timeout expires, in this case it calls a function that uses another window method -- window.ScrollBy() -- to scroll the window rapidly up and down, creating a shaking effect. If we want, we can defuse the timeouts by using window.clearTimeout(), as demonstrated here.
Here is another example. Watch the status bar when you click this link. This example uses window.setInterval() to repeatedly call a function that cycles the text in the status bar by one character. This happens every 250 milliseconds, or four times a second. When one full cycle is complete, it clears the interval timer, stopping the cycling.
Finally, here are the properties and methods associated with the window object: