如何取消 HTML 页面中键盘上按钮的按下。
谢谢
最佳答案
它比到目前为止所描述的要复杂一些,请参阅 Quirksmode.org :
You cannot prevent the default
onkeydown
in Opera.
在 Opera 中,请使用 onkeypress
。
关于javascript - 取消 HTML 页面中的 keydown 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3034439/