Главная

Отправка формы по Ctrl Enter

<script type="text/javascript">

function ctrlEnter(event, formElem) {

if((event.ctrlKey) && ((event.keyCode == 0xA)||(event.keyCode == 0xD))) {

formElem.submit.click();

}

}

</script>

<form action="send.php" method="post" onkeypress="ctrlEnter(event, this);">...</form>