Frames
Note. These pages have not been upgraded from HTML to XHTML
With frames you can divide your web page into separate, independent parts, the content of each of which comes from a separate HTML document. You can update each frame separately. You can create elements that can be used consistently throughout the site.
Frames can be displayed with borders and scrollbars, and the user can drag the border to resize the frame(s). You can turn each of these features off, however. You can provide alternative content for browsers that do not support frames.
- attributes declared in a
FRAMEtag have precedence over same-named attributes in theFRAMESETtag - the
FRAMESETtag is not part of theBODYtag; it replaces theBODYtag
<a href="URL" target="frameName">link</a>- clicking on link loads the specified URL in the frame whose NAME attribute is set to "frameName"<a href="URL" target="_top">link</a>- clicking on link loads the specified URL in a full page that replaces the multiframe page<a href="URL" target="_blank">link</a>- clicking on link loads the specified URL in a separate full page
This demonstration of how to navigate frames uses examples of both HTML and JavaScript code.
