Cancel button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Veari
    New Member
    • Sep 2008
    • 1

    Cancel button

    Hi, I'm using ASP.NET to create a website. I want to click on the Cancel button and return to the previous page. Please help.

    Thanks, Veari
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    In your button's onclick property, set the value to "javascript : history.go(-1);", like so:

    <button id="myButton" onclick="javasc ript: history.go(-1);" text="Back">

    Comment

    Working...