Frames

Defining Frames

<frameset cols="175, *" frameborder="no" border="0" marginheight="0" marginwidth="0" framespacing="0">
  <frame name="Index" src="IndexH.htm" marginheight="0" marginwidth="0" resize="no" scrolling="no">
  <frame name="HomePage" src="Home.htm" marginheight="0" marginwidth="0resize="no">
  <noframes>
    <body bgcolor=#ffffff>
    The body for frameless browsers.
    </body>
  </noframes>
</frameset>

Return to HTML index

Accessing Frames from HTML

<a href="source.htm" target="frameName">Load the page into a specified frame.</a>
<a href="source.htm" target="_self">Load the page into the current frame.</a>
<a href="source.htm" target="_top">Eliminate frames by loading the page into the page.</a>
<a href="source.htm" target="blank">Load the page into a new window.</a>

Return to HTML index

Accessing Frames from JavaScript

<script JavaScript1.2>
  parent.frame1.document.open();
  parent.frame1.document.write("<HTML><BODY>");
  parent.frame1.document.write("contents of the page");
  parent.frame1.document.write("</BODY></HTML>");
  parent.frame1.document.close();
</script>

Instead of parent, top can be used.


(person at terminal) HTML index, Free software

(house)  Rick’s home page with index or without index

Last Updated: $Date: 2001/11/04 00:35:48 $ GMT ($Revision: 1.3 $)