i have a simple button in my aspx page:
<asp:Button ID="a1" runat="server" OnClientClick="test2();" />
and the javascript function is:
function test2() {
setTimeout("alert('hello')", 1250);
}
The SetTimeout is totaly ignored - the alert won't show and the timer won't wait. i read about 10 posts about this problem on ths site , none of the solutions work. i tried calling another function instead of the alert function, i tried calling function with parameters using the function(){..}. i also tried calling the Settimeout straight from the OnclientClick function :
OnClientClick="setTimeout('alert(\'hello\')',1250);"
nothing works, the Settimeout is ignored! i'm using ie9.