Because of the comparatively long history of scriptable forms and form controls, it is comforting to know that most such scripts work with a wide range of browsers, and not just those that implement the W3C DOM. Even so, there are some misunderstandings about the combination of scripts and forms that I’ll attempt to clear up in this chapter.
Before the W3C DOM, scripts used what is now known as DOM Level 0 syntax to reference
form objects and the form controls (
textarea elements) within them. This long-time convention relies for the most part on the form and controls having
name attributes assigned to them. In fact, even today’s browsers won’t submit form control values to the server unless the elements have names assigned to them (independent of the now ubiquitous