SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: browser back
Hybrid View
-
Jun 16, 2007, 14:12 #1
browser back
i need to make a link called "back" to get the browser back 1 page
-
Jun 16, 2007, 14:19 #2
- Join Date
- Mar 2005
- Location
- Toronto
- Posts
- 378
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<a href="javascript:history.go(-1)">go back</a>
In search of the clouds...and maybe some work
-
Jun 16, 2007, 14:50 #3
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
i'm always curious about this -- what's wrong with the browser's built-in back button?
-
Jun 16, 2007, 14:54 #4
- Join Date
- Oct 2003
- Location
- Stockholm, Sweden
- Posts
- 224
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Me too. Why implement a feature that is already existing in the browser?
It's the same thing for add bookmark, reload etc. They are all redundant and clutter the page area imho.
-
Jun 17, 2007, 09:57 #5
because there is no such function in HTML
The problem is that there is no 'back' function in HTML... the "previosu page" is not held in a session and is not accessible - it's stored in a history "stack" and that is not accessible to HTML so you have to write a function to do it... and it's not always easy due to the dynamic nature of urls.
"The typical stack-based behavior underlying Back is problematic because some previously seen pages are not reachable through it."
see article:
http://www.itl.nist.gov/iaui/vvrg/hf...erg/index.html
-
Jun 17, 2007, 10:53 #6
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
that article was written in the last millenium
don't sweat it, man, your users are smarter than you give them credit for
-
Jun 17, 2007, 12:05 #7
Yeah, I know the article is old - but it's still mostly true: you can't call the browser BACK function directly with HTML - you have to emulate it using a script or function. And even that won't be perfect when accessing dynamic pages because the page session and varibale information may or may not be available.
While it's true that most people who use a browser everyday understand how to just click the 'back' button - casual users don't know this stuff inuitively.
Not everyone uses a computer everyday. I have a website for new moms and young women and at least 25% are not computer/browser savvy... and I've had many requests from that segment asking for a way to RETURN to the list of search results (that is easily accessible just by backing up through the pages). I had to add a link to emulate the action just to keep them happy and to put an end to my support emails saying "just use you're browser's BACK button".
I suspect that is the kind of thing the original poster was getting at with his/her question.
-
Jun 16, 2007, 19:55 #8
- Join Date
- Apr 2006
- Posts
- 802
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why implement a feature that is already existing in the browser?
along with a link to your site map and any suggested alternatives the requested url may elicit.
-
Jun 16, 2007, 20:06 #9
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
Bookmarks