Imitate "Back Button" action

Discussion in 'Microsoft Dot NET' started by Guest, Dec 29, 2004.

  1. Guest

    Guest Guest

    Does anyone know the command to "imitate" the "Back" button on a browser
    in .NET. I have looked in the Redirect but can't seem to find anything. I
    can re-direct to a specific page but my users come from differnet places so
    would like to put a "Back" button on the page.
    Thanks.
    Tom Youngquist
     
    Guest, Dec 29, 2004
    #1
    1. Advertisements

  2. > Does anyone know the command to "imitate" the "Back" button on a browser
    > in .NET.

    This is best done with client side script. The following HTML input button
    has the same behavior as the back button.

    <INPUT type="button" value="Go back!" onclick="history.back();">

    Anders Norås
    http://dotnetjunkies.com/weblog/anoras
     
    Anders Norås [MCAD], Dec 29, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ashvin Navare

    disable BACK & FORWARD button of internet explorer

    Ashvin Navare, Nov 17, 2003, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    284
    Jon Paugh
    Nov 18, 2003
  2. Margaret

    Open in New Window without Back Button etc

    Margaret, Dec 16, 2003, in forum: Microsoft Dot NET
    Replies:
    2
    Views:
    483
    margaret
    Dec 17, 2003
  3. Guest
    Replies:
    0
    Views:
    294
    Guest
    May 10, 2004
  4. Earl

    asp button action not invoked

    Earl, Nov 12, 2004, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    179
  5. Guest

    Back button action and requested logon page

    Guest, Dec 21, 2004, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    148
    Guest
    Dec 21, 2004
Loading...

Share This Page