Real 2 javascript
I wrote my code with the nested loops in javascript but i have the following problem: if i make the program alert() me the hour and day, then it will never load the actual page (i assume this is because it is wating for my response, clicking the new alert that just appeared) and keeps on sending new alerts as soon as i click ok on the one that already appeared, and so on until 31_2400 in which the 404 error finally appears.
or, if i comment out the alert() then itll flash by all the way to 31_2400 without ever stopping to load anything and displaying the 404 error on the final page only.
i tried using window.location='url' , window.location.href='url', window.open('URL','pagename') and other things like this but still cant get it right.
can someone please point me in the right direction?