HTML frame name attribute
Examples
A named frame:
<frameset cols="50%,50%">
<frame src="frame_a.htm" name="frame_a">
<frame src="frame_b.htm">
</frameset>
<frame src="frame_a.htm" name="frame_a">
<frame src="frame_b.htm">
</frameset>
try it"
Browser Support
All major browsers support name attribute.
Definition and Usage
HTML5 does not support the <frame> tag.
name attribute specifies the <frame> element's name.
name attribute for the target reference elements in JavaScript, or as a link.
Differences between HTML and XHTML
In XHTML, name attribute <frame> tag is obsolete and will be removed. Please use the id attribute instead.
grammar
<frame name="text">
Property Value
值 | 描述 |
---|---|
text | 规定框架的名称。 |
HTML <frame> tag