JS CTRL + ENTER 제출

518 단어 js
<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.jluvip.com/index.html" method=POST name=form1>
<textarea cols=95 name=Content rows=12 wrap=virtual onkeydown=ctlent()>
Ctrl+Enter      
</textarea>
<input type=Submit value="Submit" name=Submit>
</form>

좋은 웹페이지 즐겨찾기