Click to See Complete Forum and Search --> : Document.referrer question


manick
04-20-2006, 01:29 PM
Hi all,

I have the following code which just keeps returning to the index.html page, this is for an assignment so only have a limited number of pages and so have listed the pages individually (there is no .com address), can anybody tell me where I am going wrong please?

function checker(){

var x=document.referrer
if ((x=="main.html")||(x=="wishlist.html")||(x=="prodblank.html")||(x=="form.html")||(x=="product1.htm")||(x=="index.html")){
return true
} else {
window.location="index.html";
return false
}
}

many thanks

Nick trenam

TheBearMay
04-20-2006, 01:31 PM
Seems to me that we just discussed this the other day at:

http://www.webdeveloper.com/forum/showthread.php?t=102955