Name

CODEBASE — NN 2 IE 3 HTML 3.2

Synopsis

CODEBASE=”path"

Optional

Path to the directory holding the class file designated in either the CODE or ARCHIVE attribute. The CODEBASE attribute does not name the class file, just the path. You can make this attribute a complete URL to the directory, but don’t try to access a codebase outside of the domain of the current document: security restrictions may prevent the class from loading. A full path and filename can be set together in the CODE or OBJECT attribute, eliminating the need for the CODEBASE attribute setting.

Example

<APPLET CODE="ScriptableClock.class" CODEBASE="applets/" WIDTH=400 HEIGHT=50>
</APPLET>

Value

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

Default

None.

Object Model Reference

IE

[window.]document.applets[i].codeBase

[window.]document.appletName.codeBase

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.