August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.forward()
The forward() method of the Window object simulates the user clicking the Forward button on the browser. It returns the browser's page or frame to the next page or frame in its history.
Listing 7.540 has two buttons. One of the buttons takes the browser back one page and the other button takes it forward. Note that there has to be a back and previous page during your session for the button to have somewhere to go.
<html> <body> <form> <input type=BUTTON value="Back" onClick="window.back()"> <input type=BUTTON value="Forward" onClick="window.forward()"> ... |
Read now
Unlock full access