Parameter nameProperty

Parameter 对象参考手册Parameter Object

Examples

Get the name of the <param> element:

var x = document.getElementById("myParam").name
xThe output result is:
autoplay

Try it Yourself »

Definition and Usage

The name property is used to set or return the value of the name attribute of the parameter.

The name property specifies the name of the <param> element.

This property is usually used together with the value property to specify the parameters of a plugin defined by the <object> tag.

The value of the name property can be any name supported by the specified object.

Note:All major browsers support the name property. However, not all browsers support the file formats defined in <object>.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property


Syntax

Return the name property:

parameterObject.name

Set the name property:

parameterObject.name=name

Property Values

Value Description
name Specifies the name of the parameter

Technical Details

Return Value: A string, representing the name of the parameter


Related Pages

HTML Reference Manual:HTML <param> name Attribute


Parameter 对象参考手册Parameter Object Other Extensions