You shouldn't always assume that they are just trying to replace the
back button.
They could want to get the referrer for something else.
And, not everyone knows about the back button. Don't assume...
Joseph Ortenzi wrote:
But why?
everyone knows about the back button, don't they? So you don't really
need to help them. And if the previous site was yours and you want to
see if they went from your site A to your site B then you could
probably do this with sessions or by passing a variable forward
through the link using a server-side language like ASP or PHP.
If all you want to do is allow them to go back to where they were
before they came to you, tell them about the back button in their
browser.
One option is to set up Google Analytics on the site, so you can see
the referrers without any messy coding, otherwise, it's really none of
your business is it?
You could create a function on all of your pages that, if they have
never been there before and don't have your cookie, to ask them where
they came from and show them their back button, but really, it isn't
any of your business.
So I suppose the web Standards part of this question is about polite
behaviour?
Joe
On Jan 18, 2008, at 14:24, Simon Cockayne wrote:
Hi,
I am on a webpage...how do I know what page the browser was
previously showing.
I think Javascript History object is the ticket...but STRICT mode in
Firefox seems to tell me that I don't have permission to access it.
NOTE: I don't want to use the History object to go back or
forward...I just want to know what the previous page was...so I can
create a button to go back to it...
Cheers,
Simon
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
==========
Joe Ortenzi
[EMAIL PROTECTED]
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
--
Christian Snodgrass
Azure Ronin Web Design
http://www.arwebdesign.net/ <http://www.arwebdesign.net>
Phone: 859.816.7955
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************