Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #33

What is the Java Script code for making a "back" button, i.e. to go back to the previous page?

The Answer

Prepared Oct. 2000 by Gerry Jacobsen, PVII

The Javascript to go back to the previous page:

Select an image or a span of text and use "javascript:history.go(-1)" as the hyperlink.

for example:

<a href="javascript:history.go(-1)"><img src=........

Back to the questions list