English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML object name Attribut

Das Attribut name bestimmt den Namen des <object>-Elements und wird verwendet, um das <object>-Element in JavaScript zu referenzieren (eine andere Methode ist die Verwendung des id-Attributs).

 HTML <object> Tag

Online-Beispiel

Element mit dem Attribut name: <object>;

<!DOCTYPE html>
<html>
<head>
<title>HTML:<object> name Attribute - Basic Tutorial Website(oldtoolbag.com)</title>
</head>
<body>
<object data="helloworld.swf" width="500" height="200" name="obj1></object>
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the name attribute.

Definition and Usage

The name attribute specifies the name of the <object> element.
The name attribute is used to refer to the <object> element in JavaScript (another method is to refer to it using its id attribute).

HTML 4.01 with HTML5The differences

None.

Syntax

<object name="name">

Attribute Value

ValueDescription
nameThe name of the <object> element.
 HTML <object> Tag