經(jīng)常看到許多網(wǎng)站論壇上面快捷鍵提交表單的方法,比較好奇,經(jīng)研究寫(xiě)出來(lái)了方法
JS CTRL+ENTER 提交<script language=javascript>
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.form1.submit();}}
}
</script>
<form action="http://www.webjx.com/index.html" method=POST name=form1>
<textarea cols=95 name=Content rows=12 wrap=virtual onkeydown=ctlent()>
Ctrl+Enter提交內(nèi)容信息
</textarea>
<input type=Submit value="Submit" name=Submit>
</form>
accesskey 提交<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無(wú)標(biāo)題文檔</title>
</head>
<body>
<form action="http://www.webjx.com/index.html" method=POST name=form1>
<textarea ></textarea>
<br><input type=submit accessKey="S" value=提交(Alt+s)>
</form>
對(duì)于快捷鍵的使用IE:ALT+快捷鍵