<FRAME ...>

Usage Recommendation
use it, but don't rely on it

  • SRC: what file to put in the frame
  • NAME: the name of the frame
  • SCROLLING: should the frame have a scrollbar?
  • NORESIZE: don't let the user make the frame bigger or smaller
 

<FRAME ...> sets a single frame in the framed page. <FRAME ...> always goes inside a <FRAMESET ...> element. The SRC attribute, which is required, indicates the URL of the page that goes in the frame. In most situations you should also use NAME to give the frame a name so that links can target the frame.

For example, this code creates a frameset with two frames. The first <FRAME ...> loads the file frame1_title.html into a frame named TITLE. The second <FRAME ...> loads the file frame1_body.html into a frame named MAIN.

this code produces this
<FRAMESET ROWS="20%,*">
<FRAME SRC="frame1_title.html" NAME="TITLE">
<FRAME SRC="frame1_body.html"  NAME="MAIN">
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
this page





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.