Sunday, 21 April 2019

JavaScript Source CodeButtons: Click to Submit

JavaScript Source CodeButtons: Click to Submit
<!-- TWO STEPS TO INSTALL CLICK TO SUBMIT:



  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Shawn Hafen (shafen@mail.com) -->
<!-- Web Site:  http://shafen0.tripod.com/index.html -->

<! >
<! >

<!-- Begin
function onKeyPress () {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13) {
alert("Please Click on the Submit button to send this");
return false
}
return true
}
document.onkeypress = onKeyPress;
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<input type="text">
<input type=submit>

No comments:

Post a Comment