The Form and (Cheapest web hosting) Related Objects Prior to the
The Form and Related Objects Prior to the advent of dynamic object models and automatic page reflow, the majority of scripting in an HTML document took place in and around forms. Even with all the new DHTML powers, forms remain the primary user interface elements of HTML documents because they enable users to input information and make choices in very familiar user interface elements, such as buttons, option lists, and so on. The challenge of scripting forms and form elements often involves getting object references just right. The references can get pretty long by the time you start pointing to the property of a form element (which is part of a form, which is part of a document, which is part of a window or frame). Expanded object models of IE4+ and NN6+ include scriptable access to form-related elements that are part of the HTML 4.0 specification. One pair of elements, FIELDSET and LEGEND, provides both contextual and visual containment of form controls in a document. Another element, LABEL, provides context for text labels that usually appear adjacent to form controls. While there is generally little need to script these objects, the browsers give you access to them just as they do for virtually every HTML element supported by the browser. The Form in the Object Hierarchy Take another look at the JavaScript object hierarchy in the lowest common denominator object model (refer back to Figure 14-1). The FORM element object can contain a wide variety of form element objects (sometimes called form controls), which I cover in Chapters 24 through 26. In this chapter, however, I focus primarily on the container. The good news on the compatibility front is that much of the client-side scripting works on all scriptable browsers. While you are free to use newer ways of addressing forms and their nested elements when your audience exclusively uses the newer browsers, it can serve you well to be comfortable with the old-fashioned reference syntax. Therefore, almost all example code in this and the next three chapters uses 23 CHAPTER …. In This Chapter The FORM object as a container of form controls How to submit forms via e-mail Processing form validations LABEL, FIELDSET, and LEGEND element objects ….
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.