Results 1 to 3 of 3

Thread: going back

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49
    I have a button in HTML, and when i push it, i want to go back to the page i was before , do you know the javascript command for that
    (It supposed to work like the Back button beneath the file menu.
    thanxs

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I think it's just a function called Back() (or maybe back() - JavaScript is cases sensitive =] )
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    <html>
    
    <head>
    
    <script LANGUAGE="JavaScript">
    <!-- hide this script tag's contents from old browsers
     function goHist(a)
     
    {  
     history.go(a);
          // Go back one.
    
    } 
    
    //
    <!-- done hiding from old browsers -->
    </script>
    </head>
    
    <body bgcolor="#000000">
    
    <p align="center"><input TYPE="button" VALUE="BACK" onClick="goHist(-1)"> </p>
    </body>
    </html>
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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