OBJECT.code (Property)

The name of a Java applet to be used with the <OBJECT> tag.

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.code

This specifies the main code class to be loaded when the object is instantiated. This value is added to the codebase property to form a fully qualified URL.

There is conflicting information in the reference sources regarding the read/write ability of this property. Some suggest it is ReadOnly and others suggest you can assign a value to it. It may be that you can assign a value to it without the JavaScript interpreter complaining but that any value you assign is ignored.