Javascripts > No Right Click Javascripts > Form Validation Script
Script Title: Form Validation Script
Description: This script displays alert message if the user accidently enters any other character where a number is required.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script type=javascript> function check(f) { var a=window.event.keyCode; if(!(a>=47 && a<=58)) { alert("Please enter a valid number between 0 to 9"); } } </script>
Copy the following code between the <BODY></BODY> tags of your html page.<INPUT value="text" onclick="check(this.form);">
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email