Javascript code for validating email address

A function is a piece of code that consists of one or more lines of script.

javascript code for validating email address-21

In order to access your form fields in code, you need to assign names to the form and each of the fields. For more information see, NAME Attribute | name Property.

You may assign any name you want that is composed of alphanumeric characters (without spaces), but to make writing the code easiest, you should provide a useful, friendly name for each of the fields.

For example, if you have a form that populates a drop-down list based on the value of another form field, server-side processing may be needed to pull data from a database and populate the drop-down list.

Client-side validation provides validation within the browser on client computers through Java Script.

In addition, this article assumes a general understanding of HTML and Java Script, although a thorough understanding is not required.

For more information about HTML and Web scripting, see one or more of the following references.

Note Front Page Server Extensions are a set of programs that provide access to special Front Page features, such as database processing, form processing, hit counters, and other built-in Front Page components that require server-side processing.

You can provide custom validation for your forms in two ways: server-side validation and client-side validation.

Server-side validation incorporates code validation into a form handler. NET application on the server that provides the functionality that your form needs for processing after a customer has submitted it.

Tags: , ,