Javascript Reference
Categories: APPLET

javascript APPLET codeBase

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

Read-only  

Provides the path to the directory holding the class file designated in the code attribute. The codebase attribute does not name the class file, just the path. Not fully implemented in Netscape 7.

 
Example
 
if (document.applets["clock"].codeBase == "classes") {
    // process for the found class file directory
}
 
Value

Case-sensitive pathname, usually relative to the directory storing the current HTML document.

 
Default

None.


Powered by Linode.