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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <frame> name Attribut

Die Attributname spezifiziert den Namen des <frame>-Elements. Das Attribut name wird verwendet, um auf Elemente in JavaScript zu verweisen oder als Ziel der Verknüpfung zu dienen. HTML5 The <frame> tag is not supported.

 HTML <frame> Tag

Online Example

Name the frame as frame_name:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" name="frame_name">
  <frame src="frame_b.htm">
</frameset>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the name attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The name attribute specifies the name of the <frame> element.

The name attribute is used to refer to elements in JavaScript or as the target of links.

Differences between HTML and XHTML

In XHTML, it is not recommended to use the name attribute of the <frame> tag and to remove it. Please use the id attribute instead.

Syntax

<frame name="text">

attribute value

valuedescription
textSpecify the name of the frame.
 HTML <frame> Tag