标签:cti 按钮 element javascrip doc event 操作 which java
document.onkeydown = function (e) { if (!e) e = window.event; if ((e.keyCode || e.which) == 13) { var obtnLogin = document.getElementById("submit_btn"); //submit_btn为按钮ID obtnLogin.focus();
fun();//提交按钮触发的方法 } }
标签:cti 按钮 element javascrip doc event 操作 which java
原文地址:http://www.cnblogs.com/zhongji/p/6186464.html