例子,js提交表单的代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Ctrl + Enter 实现表单提交_www.jb200.com</title>
<script language="javascript" type="text/javascript">
function save()
{
if (window.event.keyCode == 13 && window.event.ctrlkey)
{
document.Form1.submit();
}
}
</script>
</head>
<body onkeydown="save();">
<form id="Form1" runat="server" method="post" action="result.aspx">
<div>
<textarea rows="4" name="cword"></textarea>
<input type="submit" value="提交" />
</div>
</form>
</body>
</html>