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 http://www.yaldex.com/ 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()
{
    document.getElementById("text").focus();
}
window.onload=Focus;
//  End -->
</script>
<center>
<input type="text" id="text" name="text">
<input
type=submit>
</center>

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



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

http://www.cashadvance-loans.net/nebraska/cash-advance-lincoln-ne/ . Bitcoin Gambling Site


©