Team LiB   Previous Section   Next Section
History Client-side JavaScript 1.0

go back or forward in browsing history

Synopsis

window.history
history

Methods

back( )

Goes back to a previously visited URL in the browsing history. Returns nothing.

forward( )

Goes forward in the browsing history. Returns nothing.

go( n)

Goes to the nth URL relative to the currently displayed URL. Calling this method with -1 is the same as calling the back( ) method. Returns nothing.

    Team LiB   Previous Section   Next Section