Intermediate Web Publishing

JavaScript objects

Almost everything you can reference in a javascript program is an "object"

Objects have

The main JavaScript object hierarchy:

Examples:

document.write

method associated with document object

navigator.appName

property of navigator object (readonly)

window.document.forms[0].
elements[1].value

value of the 2nd field in the first form of the document (r/w property)

document.forms[0].
email.value

value of "email" element in first form


[up] [next]JavaScript events