valueType property (param)
Specifies or returns the type of the object that is set with the value property.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: valueType |
Possible values:
String that sets or retrieves the type of the data.
One of the following values:
Default. The contents of the value property is a string. | |||||||
The contents of the value property is an identifier. | |||||||
The contents of the value property is a URI. The MIME type of the resource designated by the value property can be specified with the type property. |
Default: data.
Example HTML code 1:
This example illustrates the use of the valueType attribute with Windows Media Player:
|
||||
<object type="application/x-mplayer2" data="testVideo.wmv" width="320px" height="286px"> <param name="src" value="testVideo.wmv" valuetype="ref" type="video/x-ms-wmv" /> </object> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the valueType property with Windows Media Player:
|
||||
<head> <script type="text/javascript"> function GetValueType () { var videoFile = document.getElementById ("videoFile"); alert (videoFile.valueType); } </script> </head> <body> <object type="application/x-mplayer2" data="testVideo.wmv" width="320px" height="286px"> <param id="videoFile" name="src" value="testVideo.wmv" valuetype="ref" type="video/x-ms-wmv" /> </object> <button onclick="GetValueType ();">Get the valueType of the parameter!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments