Javascript Reference
Categories: OBJECT

javascript OBJECT object

@March 15, 2008, 1:22 a.m.
objectFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  


Provides a reference to a wrapper around an object to allow access to document object model properties of the object element when the names may be confused with internal property naming of the object. For example, if the code loaded into an object element had a property named hspace, the script reference document.getElementById("reader").object.hspace would retrieve that internal property, rather than the hspace property of the HTML element. The object property wrapper tells the JavaScript interpreter to get the property from the HTML element without diving into the external object's code.

var objCode = document.getElementById("reader").object.code;

Object reference.



Powered by Linode.