HTML and CSS Reference
In-Depth Information
url type input element ( name=favURL ) is picked up by the DOM in the JavaScript as part
of the same form as the rest of the form input elements belonging to the form named
formName .
Figure 14-2: Input can be placed outside of the form container.
Now, you don't have to worry about where you put your input forms. As long as input
elements are assigned the form ID of the form, they're treated as though they're inside the
form container.
h e target attribute refers to the browsing context of the form upon form submission. If no
target value is assigned, the browsing context is the same as if _self were assigned to a target
attribute. h e other browsing contexts are _blank , _parent, or _top . h e _blank
browsing context is quite helpful where you have information from a server-side script that
replaces the content on the calling page with its own content. Using _blank enables users to
see both the calling page and the information from the called page.
Although the DOM is generally discussed as an arrangement of nodes, it can also be
described in terms of objects — at er all object is DOM's middle name! In order to see how
forms and inputs are arranged in the DOM, you can use JavaScript references to dif erent
parts of a form. h e DOM references the form elements as a form array within a document.
h e input elements related to a form are array elements of the form with the i rst node being
Search WWH ::

Custom Search