We Provide Free javascript, java script, html, free code, window, menu, form, popup, source, date calculator, calendar, javascripts, image, javascript help, javascript popup window, forms, calendars, games, drop down menu, typing test, Web design builder, webmaster, development Java Script Code,Free JavaScripts, Tutorials, Example Code, Reference, Resources, and Help

Friday, July 31, 2009

Check if its a number

Description: This script checks the contents of a form box to ensure that its a number. 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.

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.

Here is the code in this textbox

No comments:

Post a Comment