O Object.isPrototypeOf() (Method) This method would be

O Object.isPrototypeOf() (Method) This method would be useful if it could test for the existence of a property in the inheritance chain. There is an internal HasProperty()method but the ECMA standard indicate that it is not exposed to the script interface. See also: HasProperty() Cross-references: ECMA 262 edition 3 section 15.2.4.5 Object.isPrototypeOf() (Method) A test for the relationship between two objects to ascertain direct parentage. Availability: Property/method value type: JavaScript syntax: Argument list: The receiving object is tested for identity against the object referred to by the prototype property of the object passed as an argument. If the object in the argument is a direct child object through the prototype chain, then this method returns a true value. ECMAScript edition 3 JavaScript 1.5 JScript 5.5 Internet Explorer 5.5 Netscape 6.0 Boolean primitive -myObject.isPrototypeOf(anObject) anObject The object whose prototype is to be tested See also: HasInstance() Cross-references: ECMA 262 edition 3 section 15.2.4.6 Object.name (Property) This corresponds to the NAME attribute of the tag that creates the object. Availability: JScript 5.5 Internet Explorer 5.5 Property/method value type: String primitive JavaScript syntax: IE myObject.name 1583

Leave a Reply