I want to observe cursor presses inside an input box.
I currently have the following code, but the function is never called.
<input type="Text" onkeydown ="CheckCursor(event,'abcd')" />
function CheckCursor(e, boxName)
{
alert(e.keyCode + ' and box was: '+boxname);
}
http://jsfiddle.net/3jfqwrf5/2/
Why is the function never called?