JavaScript Programmer’s Reference OBJECT.name (Property) The value of (Web site management)

JavaScript Programmer’s Reference OBJECT.name (Property) The value of the NAME=” ” HTML tag attribute. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myOBJECT.name Objects are identified either by the NAME=” “HTML tag attribute or by the ID=” ” HTML tag attribute. Netscape shows a marginal preference for the name property while MSIE seems slightly better disposed towards the ID property. However in many cases, both browsers support either technique and in some cases will locate items named with either tag as if they existed in a single namespace. See also: NAME=” “, Namespace OBJECT.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: JScript 3.0 Internet Explorer 4.0 Property/method value type: Object object JavaScript syntax: IE myOBJECT.object 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 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 Property attributes: ReadOnly. 1600

Leave a Reply