|
-
Apr 2nd, 2002, 07:25 PM
#1
Thread Starter
Hyperactive Member
useing back button...
how do i make a link that does the same thing as your back button?
Last edited by Muk108; Apr 2nd, 2002 at 07:33 PM.
-
Apr 2nd, 2002, 07:38 PM
#2
Code:
<a href="javascript:history.back()">Click here to go back</a>
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 2nd, 2002, 07:49 PM
#3
Thread Starter
Hyperactive Member
-
Apr 8th, 2002, 10:23 AM
#4
Addicted Member
also you can add the amount steps you would like to back in.
Just in case you didn't know.

<a href=javascript:history.back(-2)>Back</a>
-
Apr 10th, 2002, 07:37 AM
#5
what's the difference between that and
a href=javascript:history.go(-2)
which is how I was taught...
-
Apr 10th, 2002, 08:13 AM
#6
Fanatic Member
I was taught history.go as well.
history.go(-2) is the correct way to do this.
history.back() was originally designed to go to the previous page and not take a parameter where as history.go was designed to go to a page from the relative position using a parameter.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|