<html> <head> <script> function test() { if(event.ctrlKey && event.keyCode=='13') alert("submit"); } </script> </head> <body onkeydown="if(event.ctrlKey && event.keyCode=='13') test();"> <form method="post" name="form1"> <input type="text" onkeydown="test();"> <input type="button" value="test" onclick="test()"> </form> </body> </html>
?咀上收集整理