JavaScript and the Document Object Model
The basic page
Let's start with the basic page, which includes a work area and form indicating how many notes are already created:
Listing 1. The basic page
|
Lisitng 1 shows a basic page with a couple of styles (just to pretty it up a little). The body of the page includes a single div
element, which includes a heading element (h1
) and a form
element. Even in pre-DOM browsers, accessing the information within the form wasn't a problem.
View JavaScript and the Document Object Model Discussion
Page: 1 2 3 4 5 6 7 8 Next Page: The DHTML wayFirst published by IBM developerWorks