all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

value attribute | value property

Sets or retrieves the value of an input parameter for an element.

Syntax

HTML<element value="p" ... >
JavaScript

p = object.value

Property values

Type: String

the value passed to an applet, embed, or object element.

Standards information

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

param
Conceptual
Binding HTML Elements to Data
Introduction to Data Binding

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.