I have this code :
Please help me, how stop this code from continue looping (work only once)Code:<script type = "text/javascript">
setTimeout(function (){
function reDirect() {
x = Math.ceil(Math.random() * 86); // change 86 to 2 for your initial test
newPage = "Page" + x + ".html";
window.location = newPage;
}
reDirect();
}, 2000); // How long do you want the delay to be (in milliseconds)?
</script>
