Applet.codeBase (Property)

The path to the directory containing the applet code.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myApplet.codeBase

The codebase is the path to the directory where the classes used in the code or archive properties are located. The actual path to the required files is generated by a string concatenation of codebase+code or codebase+archive to generate a fully specified URL.

Due to security limitations, it is not permitted to access a codebase value that is outside of the domain specified by the containing document.

Property attributes: