I'm trying to get the onkeydown property to run a JS function that just has an alert, it works on Chrome and FF but not in IE9. Neither keydown, keyup nor keypressed work on IE9. This is the code I used for testing:
JS:
function method()
{
alert("hi");
}
ASP:
<asp:TextBox id ="tb" runat = "server" onkeydown = "method();"/>
I tried calling it like this onkeydown = "method();"
and like this onkeydown = "method(); return false;"
and neither worked.
By the way, on the program I'm planning to implement this, the textBox has an extender. Regular HTML won't work here ^_^'
Also, I can't post too much of the original source due to clients request to keep it closed source.
Any suggestion would be greatly appreciated.