110
rated 0 times
[
116]
[
6]
/ answers: 1 / hits: 17302
/ 15 Years ago, fri, january 29, 2010, 12:00:00
I have this code
window.onload = function() {
function foo() {
alert(test);
}
setInterval(foo(),500)
}
Which returns undefined...When i use it outside the window.onload it works. Can anyone explain me why?
More From » setinterval