valuetype attribute | valueType property
Sets or retrieves the data type of the value attribute.
Syntax
| HTML | <element valuetype="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
the type of data specified in the value attribute of the param element.
-
Default. The value specified by the value attribute will be evaluated and passed to the applet, embed, or object element as a string.
-
The value specified by the value attribute is a URI that designates a resource where run-time values are stored. This allows support tools to identify URIs given as parameters.
-
The value specified by the value attribute is an ID that refers to an object declaration in the same document. The ID must be the value of the id attribute set for the declared object element.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
Remarks
valueType was introduced in Microsoft Internet Explorer 6
Examples
The following example shows how to use the param element to specify a run-time parameter for the object specified by the object element. A URI is specified for the Windows Media Player control.
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value="http://msdn.microsoft.com/workshop/samples/author/behaviors/media/28movie.asf" valuetype="ref" TYPE="video/*"/> </object>
See also