Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Anchor link to the previous history page

Posted on 1997-07-04
2
Medium Priority
?
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
ryanmc earned 80 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

604 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