p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   emulating Back browser button (http://p2p.wrox.com/showthread.php?t=17041)

badgolfer August 18th, 2004 08:13 AM

emulating Back browser button

   i know how to do response.redirect("my form.aspx") to take
   me to whatever form i need.

   But..i want to have a button on my web form that when i press it,
   it is the same as pressing the browser 'Back' button. ie it takes
   me back to the previous form i was viewing.

   Does anyone know the code to do this?


happygv August 19th, 2004 01:19 AM

<input type="button" name="backbutton" value="back" onclick="javascript:history.go(-1);">

Is this what you are looking for?


- Vijay G
Strive for Perfection

badgolfer August 19th, 2004 03:05 AM

Perfect. Many thanks.

Chas (Canterbury, UK)

All times are GMT -4. The time now is 08:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.