HTML object name attribute
Examples
With the name attribute of <object> element:
<object data="helloworld.swf" width="400" height="400"
name="obj1"></object>
name="obj1"></object>
try it"
Browser Support
All major browsers support name attribute.
Definition and Usage
name attribute specifies the name of the <object> element.
name attribute for <object> element (alternative is by using the id attribute to refer to it) references in JavaScript.
Differences between HTML 4.01 and HTML5
no.
grammar
<object name="name">
Property Value
值 | 描述 |
---|---|
name | <object> 元素的名称。 |
HTML <object> tag