Javascript for validating web site address

For example, you may want to ensure that someone inserts a valid e-mail address into a text box, or perhaps you want to ensure that someone fills in certain fields.Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.Even go so far as to point out WHAT did not check out in the regexp check, but do NOT stop them from submitting the form.But keep in mind that one should not rely only upon Java Script validation. This should be validated on the server side as well.I'm tired of being told my e-mail address of "foo [email protected]" is invalid.The best option is to ask the user to type their e-mail in twice and if you MUST use a regex checker, then tell the user that their e-mail address does not appear to be valid and ask if they are sure they typed it right.The idea is to create a set of “validation descriptors” associated with each element in a form.The “validation descriptor” is nothing but a string specifying the type of validation to be performed.

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.Here's an example of the above in action: Almost all answers to this questions suggest using Regex to validate emails addresses.I think Regex is only good for a rudimentary validation.