Name

codeBase — NN n/a IE 4 DOM n/a

Synopsis

Read-only

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.

Example

if (document.all.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.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.