1 page history return

M

Mary Hartman

Using FrontPage 2003

I am trying to create a button on a template that when clicked will
bring the client back to the previous page.

I know this must be a commun routine, but I can't seem to find the
instructions.

Could someone help please?
 
R

Ronx

<script type="text/javascript">
document.write('<a href="javascript:history.go(-1)">Previous Page</a>');
</script>

The words Previous Page can be replaced with text of your choice,
or by an image. Example:
<img src="images/back.gif" alt="previous page" width="50" height="19">


Javascript is used to write the link into the page so that users with
javascript disabled will not see a non-functioning button.

Also, FrontPage will not change the relative path to the image if the
page is moved into another folder.
 
Top