Results 1 to 4 of 4

Thread: Back Button

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    59

    Back Button

    Hello Again:

    I want to thank all that reply.

    Is there a way that I can create my own button, but have it do the samething the back button on Internet Explorer does.

    This way if I show a picture from something in a list all that the client will have to do is click on my back button and they will be brought back to the same screen that they was. (They won't have to restart at the top of the list again.

    Thank you for your help.

    David M. Camp
    David M. Camp

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Code:
    <a href="#" onclick="history.back(); return false;">Back</a>
    Or if you want to use JavaScript to write it so that only people with JavaScript will see the link (the better way to do it):

    Code:
    <script type="text/javascript"><!--
    document.write('<a href="#" onclick="history.back(); return false;">Back</a>');
    document.close();
    //--></script>

  3. #3
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    there's also

    Code:
    history.go(-1);
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah I was going to mention that but I was too lazy

    Is one of them the official way to do it, and one the proprietry way or something? Or do they just have to methods for the same result?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width