faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 4 people (0%) answered Yes
Recently 0 of 4 people (0%) answered Yes

Entry

How do I detect from which URL somebody is coming and redirect him to a particular page?

Apr 8th, 2008 19:29
ha mo, Dave Clark, Enrico Rawit,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enrico,
     Your only choice is to examine the content of the 
document.referrer property.  However, it is up to the server whether 
this HTTP header value is sent with the document.  Thus, this is not 
100% reliable and there is nothing else like it for JavaScript to use.
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com