Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is the coding for the "BACK" command

    When a person goes from page to page on the website, they can use the "back" command on the top left of the screen. I would like to put a "back" button on my webpage, but I haven't been able to find the coding that would do that. So far, when I look at other people's websites, the coding for the BACK button is actually hard coding to take a person back to a specific webpage. I'm looking for a generic code to move a person back to their previous page.

    Any ideas?

  • #2
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You use javascript and a link (not sure if theres a way without javascript)

    Code:
      <a href="javascript:history.back()">Back!</a>
    I beleive that isi what it is, or it is something very close. (I havent been coding in Javascript for about 6 months-1 year now, so me isnt very sure )
    Last edited by l3vi; 04-22-2004 at 11:45 PM.

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    javascript:history.go(-1)

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    or history.back()
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New Coder
    Join Date
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for the help. This is what I was looking for.


  •  

    Posting Permissions

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