paramNN 6 IE 5 DOM 1  

  

The param object reflects the param element, which passes variable values to ActiveX objects (IE/Windows only), Java applets, and some plugins. Such programs are written to read parameter name/value pairs during initialization so the values are ready to go when the program starts (e.g., the URL of a sound file). IE for Windows commonly assigns a full suite of parameters to some ActiveX controls, even though only a handful might be explicitly defined in the source code. Although properties are read/write, assigning new values after the page has loaded does not convey the new values to the external program.

 
HTML Equivalent
 
<param>
 
Object Model Reference
 
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
nametypevaluevalueType
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

None.

nameNN 6 IE 5 DOM 1  

Read/Write  

This is the name of the external program's parameter to which a value in the param element applies.

 
Example
 
var pName = document.getElementById("audioParam2").name;
 
Value

String.

 
Default

None.

typeNN 6 IE 5 DOM 1  

Read/Write  

Provides the MIME type for a param element with a valuetype attribute set to "ref".

 
Example
 
if (document.getElementById("myParam").valueType == "ref") {
    var pType = document.getElementById("myParam").type;
}
 
Value

Case-insensitive MIME type as string. A catalog of registered MIME types is available from ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/.

 
Default

None.

valueNN 6 IE 5(Mac)/6(Win) DOM 1  

Read/Write  

Indicates the string value assigned to a named parameter for the external program.

 
Example
 
var pVal = document.getElementById("volumeParam").value;
 
Value

String.

 
Default

None.

valueTypeNN 6 IE 5(Mac)/6(Win) DOM 1  

Read/Write  

Indicates the string classification of the parameter set by the element.

 
Example
 
var pValType = document.getElementById("volumeParam").valueType;
 
Value

String constant: data | object | ref.

 
Default

data