Lisa Wollin Microsoft Corporation May 2004 Applies to: Microsoft® Office Front Page® 2003 Microsoft Front Page 2002 Microsoft Front Page 2000 Summary: Learn how validate HTML form fields using Java Script in Microsoft Office Front Page 2003.
This article assumes a general understanding of HTML and Java Script.
Before HTML5 there was no means of implementing validation natively; therefore, developers have resorted to a variety of Java Script based solutions.
To help ease the burden on developers, HTML5 introduced a concept known as constraint validation - a native means of implementing client side validation on web forms.
As an alternative you can also try our non-DTD-based validator.
In this tutorial, you will learn how to use Java Script to validate an HTML form.
(16 printed pages) Introduction Getting Started Writing the Validation Script Connecting the Form to the Script Associating Form Fields with Custom Script Code Listing Conclusion When you create forms, providing form validation is useful to ensure that your customers enter valid and complete data.
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.
This validator checks the markup validity of Web documents in HTML, XHTML, SMIL, Math ML, etc.
If you wish to validate specific content such as RSS/Atom feeds or CSS stylesheets, Mobile OK content, or to find broken links, there are other validators and tools available.
The constraint validation API adds the following properties / methods to DOM nodes.