Script Categories

Buttons Effects >>> Click To Submit.

Prevent the Return key from accidentally submitting a form. The user now MUST click on the submit button.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function onKeyPress (e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.keyCode;
else return true;
if (keycode == 13) {
alert("Please Click on the Submit button to send this");
return false
return true
document.onkeypress = onKeyPress;
function Focus()
//  End -->
<input type="text" id="text" name="text">

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).