window.history.back()
window.history.forward()
window.history.go()
window.history.length
For example, click here to go back two documents.
|
|
Using window.history.length, we can tell that the number of documents you have viewed is:
The location object can be used to get information about the current URL or to change the document being displayed in the window.
The JavaScript for this is:
|
|
timerID = setTimeout(function, delay in milliseconds)
clearTimeout(timerID)
This example uses the setTimeout method to scroll a list inside a form text box:
Some of the script:
|
|