You are here: irt.org | FAQ | JavaScript | Referrer | Q143 [ previous next ]
Try:
<script language="JavaScript"><!--
if (document.referrer.indexOf('url1.com') > -1)
location.href = 'index1.html';
else if (document.referrer.indexOf('url2.com') > -1)
location.href = 'index2.html';
else
location.href = 'index.html';
//--></script> |
Feedback on 'Q143 How do I parse the referrer, in order to forward the browser to the appropriate page?'