Latest web development tutorials

HTML object name attribute

HTML object tag Reference Manual HTML <object> tag

Examples

With the name attribute of <object> element:

<object data="helloworld.swf" width="400" height="400"
name="obj1"></object>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference Manual HTML <object> tag