onKeyPress Vs. onKeyUp and onKeyDown

前端 未结 12 791
醉酒成梦
醉酒成梦 2020-11-22 07:44

What is the difference between these three events? Upon googling I found that:

  • The onKeyDown event is triggered when the user pre
12条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 08:07

    Basically, these events act differently on different browser type and version, I created a little jsBin test and you can check the console for find out how these events behavior for your targeted environment, hope this help. http://jsbin.com/zipivadu/10/edit

提交回复
热议问题