<PARAM>NN 2   IE 3   HTML 3.2
<PARAM>End Tag: Forbidden
 

The PARAM element may be nested within an APPLET or OBJECT element to pass parameters to the Java applet or object as it is being loaded. Parameters provide ways for HTML authors to adjust settings of an applet or object without having to recode the applet or object. A parameter typically passes a name/value pair, which is assigned to the NAME and VALUE attributes. You can have more than one PARAM element per applet or object. The documentation for the applet or object should provide you with necessary information to pass those parameter values.

 
Example
<APPLET CODE="simpleClock.class" NAME="myClock" WIDTH=400 HEIGHT=50>
<PARAM NAME="bgColor" VALUE="black">
<PARAM NAME="fgColor" VALUE="yellow">
</APPLET>
DATAFLDNN n/a   IE 4   HTML n/a
DATAFLD="columnName"Optional
 

Used with IE 4 data binding to associate a remote data source column name with the parameter passed to a Java applet or object. In the following example, data from a data source column named backColor is assigned to the VALUE attribute, even though the attribute is not explicitly shown in the tag. More complex relationships are also possible with both OBJECT and APPLET elements. Eventually, Internet Explorer will be able to bind changes of applet property values to data source columns to update the data source and to pass data source changes to an applet using a technique for naming get and set property methods found in JavaBeans.

 
Example
<PARAM NAME="bgColor" DATASRC="#DBSRC2"DATAFORMATAS="text" DATAFLD="backColor">
 
Value
Case-sensitive identifier.
 
Default None.
DATAFORMATASNN n/a   IE 4   HTML n/a
DATAFORMATAS="dataType"Optional
 

Used with IE 4 data binding, this attribute advises the browser whether the source material arriving from the data source is to be treated as plain text or as tagged HTML. This attribute setting depends entirely on how the data source is constructed and what kind of data the PARAM element is expecting.

 
Example
<PARAM NAME="bgColor" DATASRC="#DBSRC2"DATAFORMATAS="text" DATAFLD="backColor">
 
Value
IE 4 recognizes two possible settings: text | HTML.
 
Default text
DATASRCNN n/a   IE 4   HTML n/a
DATASRC="dataSourceName"Optional
 

Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Content from the data source is specified via the DATAFLD attribute.

 
Example
<PARAM NAME="bgColor" DATASRC="#DBSRC2"DATAFORMATAS="text" DATAFLD="backColor">
 
Value
Case-sensitive identifier.
 
Default None.
NAMENN 2   IE 3   HTML 3.2
NAME="elementIdentifier"Required
 

Assigns an identifier for the parameter that the applet or object is expecting. Parameters generally supply a name/value pair. An applet, for example, includes a routine that fetches each parameter by name and assigns the passed value to a variable within the applet. Documentation for the applet or object should provide a list of names and value types corresponding to the PARAM elements.

 
Example
<PARAM NAME="loop" VALUE="4">
 
Value
Case-sensitive identifier.
 
Default None.
TYPENN n/a   IE n/a   HTML 4
TYPE="MIMEType"Optional
 

When the VALUETYPE attribute is set to "ref", the TYPE attribute value advises the browser about the content type of the file referenced by the URL assigned to the VALUE attribute. Omit the TYPE attribute for other settings of the VALUETYPE attribute.

 
Example
<PARAM NAME="help" VALUE="http://www.giantco.com/help.html" VALUETYPE="ref"
TYPE="text/html">
 
Value
Case-insensitive MIME type. A catalog of registered MIME types is available from ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/.
 
Default None.
VALUENN 2   IE 3   HTML 3.2
VALUE="runTimeParameterValue"Optional
 

The parameter value to be passed to an applet or object as the executable program or data loads. Parameter values are passed as string values, and it is up to the applet or object to perform the necessary internal coercion of the data to the desired data type. The VALUE attribute is listed as optional because there may be instances in which the presence of the PARAM element NAME attribute may be sufficient for the object.

 
Example
<PARAM NAME="loop" VALUE="4">
 
Value
Any string value.
 
Default None.
VALUETYPENN n/a   IE n/a   HTML 4
VALUETYPE="paramValueType"Optional
 

OBJECT element parameters can come in three flavors: data, object, and ref. The VALUETYPE attribute uses these constants to tell the browser how to treat the value assigned to the VALUE attribute for passing to the object. When the VALUETYPE is data, the VALUE attribute is passed as a plain text string. A VALUETYPE of object means that the VALUE attribute consists of an identifier to some other OBJECT element defined earlier in the same document. The other object may be one whose DECLARE attribute is set, and now the parameter values are being passed to instantiate the object. When VALUETYPE is ref, the VALUE attribute is a URL that points to a file or other resource where run-time values are stored (perhaps a set of parameter values).

 
Example
<PARAM NAME="anime" VALUE="http://www.giantco.com/params/animation.txt"
VALUETYPE="ref" TYPE="text/html">
 
Value
Three possible constant values: data | object | ref.
 
Default data
Hosted by uCoz