HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 25 JavaScript Object Model -- II

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * See also color IMAGE
Addon
variables can be written in a fashion such as:
parentobject.property1[index1].property2..finalproperty[indexN]
Note there is no hierarchical inheritance in definition of objects but the ability to define object properties that are themselves objects creates a natural hierarchical naming scheme
Object Methods are naturally referred to as
object ...property.method(arguments)
Methods Objects and Properties are naturally divided into those defined by Netscape and those defined by user.
Here is an example of a Netscape object with a typical property and method
  • document is a Netscape object typically defined by a .html page
  • document.writeln is method of this object which outputs string followed by a newline
  • document.location is a property of this object containing its URL



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Feb 19 1997