Solved

Anchor link to the previous history page

Posted on 1997-07-04
2
258 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now