Parameter nameProperty
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
![]()
![]()
![]()
![]()
![]()
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 Object Other Extensions