sssweb - 9:25 pm on Jan 2, 2013 (gmt 0) I got it. Timer needs to be defined outside the function: var Timer; function test() { Timer = setTimeout(function() { alert("hello"); }, 1000); }
I got it. Timer needs to be defined outside the function: var Timer; function test() { Timer = setTimeout(function() { alert("hello"); }, 1000); }