If a property is a public property of the ActiveX object, and that name coincides with a property of the JavaScript object that is instantiated by the <OBJECT> HTML tag, then access to the property belonging to the containing object is difficult. This is because the search order will see the public property of the ActiveX object first. By using the object property, once 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 ActiveX object.
This access mechanism applies to method invocations as well.
See also: | Applet.object |
Prev | Home | Next |
OBJECT.name | Up | OBJECT.readyState |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |