Ctrl+Enter提交表单

<scriptlanguage=javascript>
ie=(document.all)?true:false
if(ie){
functionctlent(eventobject){if(event.ctrlKey&&window.event.keyCode==13){this.document.form1.submit();}}
}
</script>

<formaction="Post.asp"method=POSTname=form1>
<inputname=Contentonkeydown=ctlent()value="Ctrl+Enter提交内容信息
"/>
<inputtype=Submitvalue="Submit"name=Submit/>
</form>

你可能感兴趣的:(JavaScript,IE,asp)