Solved

Anchor link to the previous history page

Posted on 1997-07-04
2
272 Views
Last Modified: 2009-07-29
I would like to have an anchor with an image attached that will when clicked return the user to the previous page in the browser's history (i.e. I want to simulate the BACK button) I have managed to use a form button like so:

<INPUT TYPE="button" VALUE="Previous Page"  
       onclick="history.back()">

However, I would like something link <A HREF="Don't know what goes here" onClick=history.back()> .... I know that it is the HREF="something" value that I would like to be replaced with the history.back value.

Any suggestions would be welcome.
Michael Ferreira
0
Comment
Question by:ferreimi
2 Comments
 

Accepted Solution

by:
ryanmc earned 20 total points
ID: 1268147
You would use
<a href="javascript:history.back();">Go back</a>
0
 

Author Comment

by:ferreimi
ID: 1268148
Thanks ... I could have sworn I tried that ... but it works now

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filktering Alphabetically 8 31
Javascript 2 26
Autocomplete with Jquery Question 2 20
Can anyone see what is the fault in my javascript code? 8 31
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question