Hello
i'm using javascript code to redirect visitor to random link like the example below
but sometimes i get error 404 response :(
var pageArr = ["http://google.com", "http://yahoo.com", "http://bing.com", "http://youtube.com", "http://facebook.com"];
document.location.href = pageArr[Math.ceil(Math.random()*5)];
ps:the code does exist in external js file
what the problem here ?
i'm not coder ..thanks in advance