Page 1 of 1

coding 'back one page' in image

Posted: Mon May 07, 2012 5:02 am
by Tipiford
The line of code

<FORM><INPUT TYPE="button" VALUE="Return" onClick="history.go(-1);return true;"></FORM></div>

has served me well in form style, but we've been doing some updating and would like to move this code to an image. I tried

<a href="onClick="history.go(-1);return true;">
<input type="image" src="/graphic.jpg" alt="Submit button">

but there's no response on the image.

Re: coding 'back one page' in image

Posted: Mon May 07, 2012 8:35 am
by x_mutatis_mutandis_x
[syntax]<input type="image" src="/graphic.jpg" onclick="javascript: history.go(-1);" />[/syntax]
or
[syntax]<a href="#" onclick="javascript: history.go(-1); return false;"><img src="/graphic.jpg" alt="Submit Button" /></a>[/syntax]

Re: coding 'back one page' in image

Posted: Mon May 07, 2012 10:34 am
by Tipiford
Thanx, we resolved it with

<input type="image" src="/images/graphic.jpg" alt="Submit button" onclick="history.go(-1); return true;" />