<frame src="" name="">
Browser |
|
---|
The name attribute of the FRAME element defines a unique name for the frame.
<frame src="example.html" name="test">
Attribute | Value | Explanation |
---|---|---|
name=" " | frame name | arbitrary name |
- Frame name
-
- Frame names must start in the alphabet.
name="a001" - The following symbols can be included in a frame name.
hyphen(-), underscore(_), colon(:), period(.)
name="frame_name"
- Frame names must start in the alphabet.
The frame name is used for the target attribute of the A element and the target attribute of the FORM element.
Example
The name in the top frame : top
The name in the middle frame : middle
The name in the bottom frame : bottom
<html>
<head>
<title>TAG index</title>
</head>
<frameset rows="150,150,*">
<frame src="example05a.html" name="top">
<frame src="example05b.html" name="middle">
<frame src="example05c.html" name="bottom">
<noframes>
<body>
<p>Alternate content</p>
</body>
</noframes>
</frameset>
</html>
The HTML codes of the "example05a.html" (Top frame)
<a href="example05d.html" target="middle">Displays into the middle frame</a>
<a href="example05d.html" target="bottom">Displays into the bottom frame</a>
- Output
-
Example page