HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 21 February 97

Foil 11 JavaScript Object Model -- II

From Feb 17/19 Delivered Lecture for Course CPS616 -- aJavaScript Language Objects and Frames CPS616 spring 1997 -- Feb 17 and 19 1997. by Geoffrey Fox * See also color IMAGE
Secs 220.3 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 Fri Feb 21 1997