SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: A back button for web pages
-
Dec 7, 2000, 12:05 #1
- Join Date
- Nov 2000
- Location
- Oslo, Norway
- Posts
- 413
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi again,
It's come to my attention that the javascript code I've used for years to make back-links doesn't work. At least not for a friend of mine which uses IE 5.0. The code is as follows:
<A HREF="javascript:back()">Back</A>
Does anyone know why this doesn't work for IE 5.0, or more importantly, what code I can use to get a comp. back button.
Thanks in advance !
-
Dec 7, 2000, 12:37 #2
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hey, you're right! That surprised me...
Anyway, this ought to work (does for me with IE 4.0):
Code:<a href="javascript:history.go(-1)">Go BACK!</a>
Two pages back is "-2" and one page forward is just "1" -
Bookmarks