Latest web development tutorials
 

Parameter value Property

< Parameter Object

Example

Get the value of a <param> element:

var x = document.getElementById("myParam").value

The result of x will be:

true
Try it Yourself »

Definition and Usage

The value property sets or returns the value of the value attribute of a parameter.

The value attribute specifies the value of a <param> element.

This attribute is used together with the name attribute to specify parameters for the plugin specified with the <object> tag.

The value can be any value supported by the specified object.

Note: The <param> tag is supported in all major browsers. However, the file format defined in <object> may not be supported in all browsers.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The value property is supported in all major browsers.


Syntax

Return the value property:

parameterObject.value

Set the value property:

parameterObject.value=value

Property Values

Value Description
value Specifies the value of the parameter

Technical Details

Return Value: A String, representing the value of the parameter

Related Pages

HTML reference: HTML <param> value attribute


< Parameter Object