THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Parameter name Property

Parameter Object Reference Parameter Object

Example

Get the name of a <param> element:

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

The result of x will be:

autoplay
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

Internet Explorer Firefox Opera Google Chrome Safari

The name property is supported in all major browsers.


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 Reference Parameter Object