Parameter name Property
Example
Get the name of a <param> element:
var x = document.getElementById("myParam").name
Try it Yourself »
Definition and Usage
The name property sets or returns the value of the name attribute of a parameter.
The name attribute specifies the name of a <param> element.
This attribute is used together with the value attribute to specify parameters for the plugin specified with the <object> tag.
The name attribute value can be any name 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
Property | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
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: HTML <param> name attribute
❮ Parameter Object