JavaScript KeyCode Values are “undefined” in Internet Explorer 8

前端 未结 8 1308
广开言路
广开言路 2020-11-30 12:58

I\'m having trouble with some JavaScript that I\'ve written, but only with Internet Explorer 8. I have no problem executing this on Internet Explorer 7 or earlier or on Mozi

8条回答
  •  無奈伤痛
    2020-11-30 13:25

    Try adding onkeyup event as well and call the same function.

    TIP: You can add debugger; at beginning of doSubmit to set a break, then you can examine keyCode.

提交回复
热议问题