Objects, Methods, and Properties

This section itemizes JavaScript objects by description, compatibility, properties, and methods.

Anchor

A place in a document that is the target of a hypertext link. Using the HTML A tag or calling the String.anchor method, the JavaScript runtime engine creates an Anchor object corresponding to each A tag in your document that supplies the NAME attribute. It puts these objects in an array in the document.anchors property. You access an Anchor object by indexing this array.

Compatability

JavaScript 1.0 / client

Method summary

This object inherits the watch and unwatch methods from Object.

Applet

The HTML <APPLET> tag. The JavaScript runtime engine creates an Applet object corresponding to each applet in your document. It puts these objects in an array in the document.applets property. You access an Applet object by indexing this array.

Compatability

JavaScript 1.1 / client

Property summary

The Applet object inherits all public properties of the Java applet. Properties are detailed in Table 1.2.

Method summary

The Applet object inherits all public methods of the Java applet. Methods are detailed in Table 1.3.

Table A-2. Applet Properties

Property

Description

Version

constructor

Specifies the function that creates an object’s prototype.

1.1

index

For an array created by a regular expression match, the zero-based index of the match in the string.

1.2

input

For an array created by a regular expression match, reflects the original string ...

Get JavaScript Application Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.