'Back' HTML code not working

  • 1
  • Question
  • Updated 8 years ago
  • Answered

I have the following code

INPUT TYPE ="image" src="resources/Site_images/pebbles1.jpg" VALUE="Back" onClick="history.go (-1);"> 

Which I was lead to believe would act as a 'back' button but it does not seem to be working is there something wrong with the code?

I have just done some further investigating and found that the code works on my sale pages http://www.realworldoncanvas.com/land...

However if you click on the 'en large' button this will take you to another page where the image is larger. Its on those pages that the 'back' code seem to be not working - http://www.realworldoncanvas.com/land...

very strange.

Many thanks
Photo of Stewart Scott

Stewart Scott

  • 121 Posts
  • 3 Reply Likes
  • anxious

Posted 8 years ago

  • 1
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Stewart,

Unfortunately none of your links seemed to work for me.

I use the following code to create a back link.

<a href="#" onclick="history.go(-1);return true;">Send Me Back A Page!</a> (substituting the "Send me back a page!" with your image.

You can see the original source of the code here: http://www.totalchoicehosting.com/for...

I hope this helps.