Forms

An object is an instance of a particular type. Sammy Sosa is an instance of a baseball player. My computer is an instance of a personal computer. This web page is an instance of a web page.

A document is a web page object. A document has attributes and functionality. The attributes (some times called properties) are the things that make up the page. These attributes are objects themselves, which means they have their own attributes and functionality. Some document attributes are links, images, text, and forms. Some document functionalities (some times called methods) are clear, close, open, write, and writeln.

A form is a document attribute that itself can contain other attributes called elements. Some form elements are text boxes, radio buttons, check boxes, and text blocks.

Forms are used to collect information that is provided by the user of the web page document. But collecting the information is only a first step. Instructing the web page to process the information is something only a programmer can do. It is through our Javascripts that we will unlease the power of the dynamic web page!

Let's take a look at the HTML syntax associated with a form.