Parameter value attribute

Definition and usage

value Attribute to set or return the value of the parameter's value attribute.

<param> value attribute Specify the value of the <param> element.

This attribute corresponds to name attribute Used together to <object> tag Specified plugin parameters.

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

Note:All major browsers support <param> tagHowever,<object> The file format defined in it may not be supported by all browsers.

See also:

HTML 参考手册:HTML <param> 标签

Example

Get the value of the <param> element:

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

Try it yourself

Syntax

Return the value attribute:

parameterObject.value

Set the value attribute:

parameterObject.value = value

属性值

描述
value 规定参数的值。

技术细节

返回值: 字符串值,表示参数的值。

浏览器支持

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
支持 支持 支持 支持 支持

相关页面

HTML 参考手册:HTML <param> value 属性