Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie ? about back button 1

Status
Not open for further replies.

NateUNI

MIS
Jan 3, 2002
132
US
I want to put a botton on my page that takes the user back to their previous page, in order to change any incorrect information they have input. Is there a form button for this, like a submit button? Thanks for your help
 
JavaScript!!!! :)

Link Moves Ya Back
<a href=&quot;javascript:history.back()&quot;></a>

Link Closes Window
<a href=&quot;#&quot; onclick=&quot;parent.window.close()&quot;></a>

Link Moves Ya Forward
<a href=&quot;javascript:history.forward()&quot;></a>
 

just want to add a question....because i also want to
use this for navigation.

how do you put it on your image button??
can you give me an example code..

thanks

waxx
 
It's better used in frames. Or I suppose you could use a <cfinclude template=&quot;header.html&quot;>

<table align=&quot;center&quot; width=&quot;90%&quot; border=&quot;0&quot;>
<tr>
<td width=&quot;33%&quot; align=&quot;center&quot;><b><a href=&quot;javascript:history.back()&quot;><img src=&quot;images/back.gif&quot; border=&quot;0&quot;></a></b></td>
<td width=&quot;33%&quot; align=&quot;center&quot;><b><a href=&quot;#&quot; onclick=&quot;parent.window.close()&quot;><img src=&quot;images/close.gif&quot; border=&quot;0&quot;></a></b></td>
<td width=&quot;33%&quot; align=&quot;center&quot;><b><a href=&quot;javascript:history.forward()&quot;><img src=&quot;images/forward.gif&quot; border=&quot;0&quot;></b></a></td>
</tr>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top