Iframe: Link Target

An iframe can be used as the target frame for a link. The target attribute of the link must refer to the name attribute of the iframe:

HTML file: Displayed by browser:
<body>

<iframe src="css.html" name="iframe_a" style="width:250px;height:350px;"></iframe>

<p><a href="boo.html" target="iframe_a">Click here to see a ghost in the iframe</a></p>

</body>

Click here to see a ghost in the iframe


Back button Table of Contents Next button