Categories:

Home / Free JavaScripts / Forms / Here

Cut & Paste Check if its a number (Require NS 4.x or IE 4.x)

Credit: JavaScript Kit

Description: This script checks the contents of a form box to ensure that its a number (updated to accept demicals). If not, the submission of the form is canceled, and the surfer prompted to re-enter a valid number. This script requires NS 4.x or IE 4.x to function-all other browsers will simply not participate in the number checking.

Example:

Please enter a number:

Directions: Simply cut and paste the below code into the <body> section of your page. It
contains a form with one box that is checked for "number validity". You can add in more form elements into the form, as you would with any other form.


JavaScript Tools:
Site Info


CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info