从网上找的event.keycode值大全,方便自己和大家以后查阅:

 


如果要使用组合键,则可以利用event.ctrlKey,event.shiftKey,event .altKey判断是否按下了ctrl键、shift键以及alt键

 例如:用回车模拟Tab:  
  <input   type="text"   name="textfield"   onkeydown="if(event.keyCode==13)event.keyCode='9'">  
  <input   type="text"   name="textfield2">

 

 

 转自:http://www.cnblogs.com/huowujiyx/archive/2008/07/04/1235353.html

 

相关文章:

  • 2021-12-12
  • 2021-12-02
  • 2021-12-26
  • 2021-11-15
  • 2021-09-27
  • 2021-12-05
  • 2022-01-02
  • 2021-12-05
猜你喜欢
  • 2021-12-05
  • 2021-12-07
  • 2022-02-16
  • 2021-04-18
  • 2021-11-17
  • 2021-12-14
  • 2021-10-19
  • 2021-10-04
相关资源
相似解决方案