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>