Forum Moderators: open
Here is the original redirect script:
<!-- Begin
var refarray = new Array();
refarray['somedomain.com'] = "http://www.anotherdomain.com/index.htm";
for (var i in refarray) {
if (document.referrer.indexOf(i)!= -1) window.location.replace(refarray[i]);
}
// End -->
What I'd like to do is redirect to page1.htm for searches with "bobby" in the search string and redirect to page2.htm for searches with "billy".
Is there a simple way to do it which happens quickly and does not cause much of a delay?