However, client-side validation may not work in all instances.A user may have a browser that doesn't support client-side scripting or may have scripting disabled in the browser.Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.(For more information on how to create form validation using the Front Page form feature, see About creating forms in Front Page 2003.) However, if the form validation provided in Front Page does not suit your needs or the site on which you are working is hosted on a server that does not have Front Page Server Extensions from Microsoft installed, you may need to create custom form validation.Important JScript is Microsoft's implementation of ECMAScript, as defined by the specification of the European Computer Manufacturers Association.Both Java Script and JScript are ECMAScript-compliant languages.Now we will see how we can validate our entered form data before submitting it to the web server.The following example shows how to validate an entered email address.
For more information about HTML and Web scripting, see one or more of the following references.The action attribute tells the browser what to do when a user submits the form.If you want to test this form, change this e-mail address to your own e-mail address.Because the code is stored within the page or within a linked file, it is downloaded into the browser when a user accesses the page and, therefore, doesn't require a roundtrip to the server.
For this reason, client form validation can be faster than server-side validation.
An email address must contain at least a ‘@’ sign and a dot (.).