Menu
I am trying to create a simple script which would rederect me to several different websites with a one second interval.
this is my code
<html>
<body>
<script language=”JavaScript1.1″>
{
var sites = new Array();
sites[0]=”
sites[1]=”
sites[2]=”
for(x=0;x<3; x++)
{
setTimeout(“window.location.replace(sites[x])”,1000)
}
}
</script>
</body>
</html>
This is my first time doing anything in javascript and I got this code from a few examples I found on the net. I can not understand what is wrong with it. Why doesn’t it go to all three websites?