next up previous
Next: Handling User Interaction Up: JavaScript Programming Previous: JavaScript Programming

Controlling HTML Document

JavaScript has a set of objects that allow it to interact with the HTML document elements and form contents in particular, through an interface known as DOM (Document Object Model) [8]. This interface provides methods and properties to retrieve, and modify HTML elements including HTML form fields. Specifically, JavaScript objects can read from one form field and write its value to another form field.



Sunil Kothari 2006-04-29