Print Page | Close Window

Code for back command

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=8771
Printed Date: 01 April 2026 at 2:32am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Code for back command
Posted By: WookMaster
Subject: Code for back command
Date Posted: 11 January 2004 at 12:37pm
I have a database that uses a search criteria to display a record in detail,  to get back to search results you can press the back button on the browser,  is there a command I can execute that will do the equivelant of this when someone presses a link or something?  thanks for the help



Replies:
Posted By: zaboss
Date Posted: 11 January 2004 at 12:40pm
<%Response.Write "<INPUT type='button' onclick='history.go(-1)' value='<< Back' id='button'1 name='button'1>"%>


-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web


Posted By: aks427
Date Posted: 14 January 2004 at 12:27am

If you wanted a link, you could use:

<a href="javascript:history.back()">Back</a>




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net