APPLETNN 3   IE 4   DOM n/a

The APPLET object reflects the APPLET element.

 
HTML Equivalent
<APPLET>
 
Object Model Reference
NN [window.]document.appletName
IE [window.]document.appletName
[window.]document.all.elementID
accessKeyNN n/a   IE 4   DOM n/a
 Read/Write
 

A single character key that brings focus to an element. The browser and operating system determine whether the user must press a modifier key (e.g., Ctrl, Alt, or Command) with the access key to bring focus to the element. In IE 4/Windows, the Alt key is required, and the key is not case sensitive. Not working in IE 4/Mac.

 
Example
document.all.appletID.accessKey = "n"
 
Value
Single alphanumeric (and punctuation) keyboard character.
 
Default None.
alignNN n/a   IE 4   DOM n/a
 Read/Write
 

Defines the alignment of the element within its surrounding container. See the section "Alignment Constants" at the beginning of for the various meanings that different values bring to this property.

 
Example
document.all.myApplet.align = "center"
 
Value
Any of the alignment constants: absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top.
 
Default bottom
altHTMLNN n/a   IE 4   DOM n/a
 Read/Write
 

HTML content to be displayed if the object or applet fails to load. This can be a message, static image, or any other HTML that best fits the scenario. There is little indication that setting this property on an existing APPLET object has any visual effect.

 
Example
document.myApplet.altHTML = "<IMG SRC='appletAlt.gif'>"
 
Value
Any quoted string of characters, including HTML tags.
 
Default None.
codeNN n/a   IE 4   DOM n/a
 Read-only
 

The name of the Java applet class file set to the CODE attribute.

 
Example
if (document.all.clock.code == "Y2Kcounter.class") {
    process for the found class file
}
 
Value
Case-sensitive applet class filename as a string.
 
Default None.
codeBaseNN n/a   IE 4   DOM n/a
 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.
dataFldNN n/a   IE 4   DOM n/a
 Read/Write
 

It is unclear how you would use this property with an APPLET object because the dataFld and dataSrc properties (as set in element attributes) are applied to individual PARAM elements. But PARAM elements are not reflected (yet) in the IE object model.

 
Value
Case-sensitive identifier of the data source column.
 
Default None.
dataSrcNN n/a   IE 4   DOM n/a
 Read/Write
 

It is unclear how you would use this property with an APPLET object because the dataFld and dataSrc properties (as set in element attributes) are applied to individual PARAM elements. But PARAM elements are not reflected (yet) in the IE object model.

 
Value
Case-sensitive identifier of the data source.
 
Default None.
height, widthNN n/a   IE 4   DOM n/a
 Read-only
 

The height and width in pixels of the element as set by the tag attributes.

 
Example
var appletHeight = document.myApplet.height
 
Value
Integer.
 
Default None.
hspace, vspaceNN n/a   IE 4   DOM n/a
 Read/Write
 

The pixel measure of horizontal and vertical margins surrounding an applet. The hspace property affects the left and right edges of the element equally; the vspace affects the top and bottom edges of the element equally. These margins are not the same as margins set by style sheets, but they have the same visual effect. To change these property values, you must access the element via its element ID rather than its name.

 
Example
document.all.myApplet.hspace = 5
document.all.myApplet.vspace = 8
 
Value
Integer of pixel count.
 
Default 0
nameNN n/a   IE 4   DOM n/a
 Read-only
 

The identifier associated with the applet. Use the name when referring to the object in the form document.appletName.

 
Value
Case-sensitive identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character.
 
Default None.
srcNN n/a   IE 4   DOM n/a
 Read-only
 

Internet Explorer 4 defines this attribute as the URL for an "associated file." The src property is not a substitute for the code and/or codebase properties.

 
Value
Complete or relative URL as a string.
 
Default None.
tabIndexNN n/a   IE 4   DOM n/a
 Read/Write
 

A number that indicates the sequence of this element within the tabbing order of all focusable elements in the document. Tabbing order follows a strict set of rules. Elements that have values other than zero assigned to their tabIndex properties are first in line when a user starts tabbing in a page. Focus starts with the element with the lowest tabIndex value and proceeds in order to the highest value, regardless of physical location on the page or in the document. If two elements have the same tabIndex values, the element that comes earlier in the document receives focus first. Next come all elements that either don't support the tabIndex property or have the value set to zero. These elements receive focus in the order in which they appear in the document. A value of -1 removes the element from tabbing order altogether.

Note that the Macintosh user interface does not provide for giving focus to elements other than text and password INPUT fields.

 
Example
document.all.myApplet.tabIndex = 6
 
Value
Integer.
 
Default None.
blur( )NN n/a   IE 4   DOM n/a

Removes focus from the current element and fires an onBlur event (in IE). No other element necessarily receives focus as a result.

 
Returned Value
None.
 
Parameters
None.
focus( )NN n/a   IE 4   DOM n/a

Gives focus to the current element and fires the onFocus event (in IE). If another element had focus at the time, it receives an onBlur event.

 
Returned Value
None.
 
Parameters
None.