value attribute | value property
Sets or retrieves the value of an input parameter for an element.
Syntax
| HTML | <element value="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
the value passed to an applet, embed, or object element.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
Remarks
In Microsoft Internet Explorer 3.02 and later, value is an attribute of param. Beginning in Microsoft Internet Explorer 6, value is a read/write property.
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
Show: