Frames in the The Window Object
Javascript the Definitive Guide by David Flanagan

CpSc 217 - Structured and Dynamic Web Programming

The notes found on these pages all reference the textbook given above. Unless otherwise stated, the citation of the information on these web pages is that text.


framesets are now old.
iframe has replaced them.


Frames allow you to split the page into pieces

<frameset rows="25%,50%,25%" frameBorder="yes" borderColor=black>
   <noframes>Sorry, your browser does not support frames<noframes>

  <frameset cols="75%,25%" frameBorder="no" frameSpacing=10 >
     <frame src="topleft.html" name="TopLeft" scrolling=no>
	 <frame src="topright.html" name="TopRight" scrolling=no>
  </frameset>
  <frameset cols="50%,50%" frameBorder="yes" bordercolor="blue" >
     <frame src="midleft.html" name="Midleft" scrolling=auto>
     <frame src="midright.html" name="Midright" scrolling=auto>  
  </frameset>
  <frameset cols="25%,75%" frameBorder="no" >   
     <frame src="botleft.html" name="BottomLeft" scrolling=yes>
     <frame src="botright.html" name="BottomRight" scrolling=yes>
  </frameset>
</frameset>


The Pages within the frames

You can refer to one frame from within another frame and modify that frame's properties:


Try creating a page on your own:


You can also use windows to "re-write" pages