HTML Back-A-Page

June 21st, 2009   Filed Under Javascript  

Programming to have your HTML go back a page isn’t hard. It’s simple Javascript that you can use in a link or a form’s button…

<form method="post">
<input type="button" value="Back" OnClick="history.go(-1 );return true;">
</form>

<a href="javascript:history.go(-1)">Back</a>

Hope that helps,
Thuan


Comments

Leave a Reply