Applet.object (Property)

An accessor that yields a reference to the containing JavaScript object when there is a possibility of naming conflicts between internally visible and externally visible property names.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Applet object
JavaScript syntax:-myApplet.object

There are occasional namespace conflicts when using applets. Public properties are created in a different environment, but are published into the JavaScript namespace and take precedence over the properties of the containing JavaScript object.

The problem is exhibited when the name of a public property collides with a property of the containing JavaScript object instantiated by the <APPLET> HTML tag. Access to the property belonging to the containing object is difficult because the scope search order will obtain the public property of the applet first. By using the object property, you can access the containing object explicitly and retrieve a property of that object even if there is an identically named property belonging to the enclosed Applet object.

This access mechanism applies to method invocations as well.

See also:OBJECT.object