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
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