JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

History.forward() Method

Name

History.forward() Method---visit the next URL

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

history.forward()

Arguments

None.

Returns

Nothing.

Description

forward() causes the window or frame to which the History object belongs to revisit the URL (if any) that was visited immediately after the current one. Calling this method has the same effect as a user's click on the Navigator Forward button. It is also equivalent to:

history.go(1);

Note that if the user has not used the Back button or the Go menu to move backwards through the history, and if JavaScript has not invoked the History.back() or History.go() methods, then the forward() method will have no effect, because the browser is already at the end of its list of URLs and there is no URL to go forward to.

See Also

"History", "History.back()", "History.go()"


Previous Home Next
History.current Book Index History.go()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.