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.
coding 'back one page' in image
Moderator: General Moderators
-
x_mutatis_mutandis_x
- Forum Contributor
- Posts: 160
- Joined: Tue Apr 17, 2012 12:57 pm
Re: coding 'back one page' in image
[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]
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
Thanx, we resolved it with
<input type="image" src="/images/graphic.jpg" alt="Submit button" onclick="history.go(-1); return true;" />
<input type="image" src="/images/graphic.jpg" alt="Submit button" onclick="history.go(-1); return true;" />