English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The name attribute specifies the name of the <object> element, and the name attribute is used to refer to the <object> element in JavaScript (another method is to use its id attribute to refer to it).
Element with name attribute: <object> element with name attribute:
<!DOCTYPE html> <html> <head> <title>HTML:<object> name attribute - Basic Tutorial Website(oldtoolbag.com)</title>/title> </head> <body> <object data="helloworld.swf" width="500" height="200" name="obj1></object> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the name attribute.
The name attribute specifies the name of the <object> element.
The name attribute is used to reference the <object> element in JavaScript (another method is to reference it using its id attribute).
None.
<object name="name">
Value | Description |
---|---|
name | The name of the <object> element. |