Get the name of an <object> element:
The result of x will be:
More "Try it Yourself" examples below.
The name property sets or returns the value of the name attribute of an <object> element.
The name attribute specifies the name of an object.
Property | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Return the name property:
Set the name property:
Value | Description |
---|---|
name | Specifies the name of the <object> element |
Return Value: | A String, representing the name of the <object> element |
---|
Change the name of an <object> element:
HTML reference: HTML <object> name attribute