Javascript Reference
Categories: OBJECT

javascript OBJECT codeBase

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

Read-only  

This is the path to the directory holding the class file designated in either the code or classid attribute. The codebase attribute does not name the class file, just the path.

 
Example
 
if (document.getElementById("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.