Hi all,
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?