469,289 Members | 2,188 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Javascript History Object

Is it possible to redirect a user dependent on the domain of the last web
page viewed? For example, if the user came from "thisdomain.com", I want to
redirect them back to this page. But, if the user came from
"otherdomain.com", I want to direct them to a different page in
"thisdomain.com." So, there would have to be a way to retrieve the URL of
the previous page viewed. Information on Microsoft's web page says it is
not possible to retrieve the actual URL for privacy reasons, but I thought I
would ask anyhow. Thanks for any help.

-Vinnie
Jul 20 '05 #1
2 1358
"Vinnie" <an**********@verizon.net> writes:
Is it possible to redirect a user dependent on the domain of the last web
page viewed? For example, if the user came from "thisdomain.com", I want to
redirect them back to this page.


Check out "document.referrer".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Thank you! This is very helpful.

-Vinnie

"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:k7**********@hotpop.com...
"Vinnie" <an**********@verizon.net> writes:
Is it possible to redirect a user dependent on the domain of the last web page viewed? For example, if the user came from "thisdomain.com", I want to redirect them back to this page.
Check out "document.referrer".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors:

<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.