<frameset cols="150,*" frameborder="no"> <frame name="nav" src="nav1.html" id="nav" /> <frame name="content" src="page1.html" id="content" /> <noframes> <body> <h3>You are not seeing the real page because it requires frames, which your browser apparently doesn't support.</h3> </body> </noframes> </frameset>
<frameset cols="150,*" frameborder="no"> <frame name="nav" src="nav1.html" id="nav" /> <frameset rows="75,*" frameborder="no"> <frame name="banner" src="banner.html" id="banner" /> <frame name="content" src="page1.html" id="content" /> </frameset> </frameset>
if (top.location != self.location) top.location.replace(self.location);
if (top.location == self.location) top.location.replace("frame2.html");
<html> <head> <title></title> </head> <frameset cols="80,*"> <frame src="fnav.html" name="nav" id="nav" /> <frameset rows="*,*"> <frame src="fcont1.html" name="upper" id="upper" /> <frame src="fcont1.html" name="lower" id="lower" /> </frameset> </frameset> </html>
function change(p1, p2) { parent.upper.document.location.href=p1; parent.lower.document.location.href=p2; }
<html> <head> <script src="fnav.js"></script> </head> <body> <p><a href="javascript:void change('fcont1.html','fcont2.html');">1/2</a></p> <p><a href="javascript:void change('fcont1.html','fcont1.html');">1/1</a></p> <p><a href="javascript:void change('fcont3.html','fcont1.html');">3/1</a></p> </body> </html>
<script> var link = "page1.html"; if (self.location.search.length > 0) { link = self.location.search.substring(1,self.location.search.length); } document.writeln('<frameset cols="150,*" frameborder="no">'); document.writeln(' <frame name="nav" src="nav2.html" id="nav" \/>'); document.writeln(' <frameset rows="75,*" frameborder="no">'); document.writeln(' <frame name="banner" src="banner.html" id="banner" \/>'); document.writeln(' <frame name="content" id="content" src="' + link + '" \/>'); document.writeln(' <\/frameset>'); document.writeln('<\/frameset>'); </script>
if (top.location == self.location) top.location.replace("frame3.html?page5.html");
<head> <script> function createPage7() { parent.content.document.writeln('<html><head><title><\/title><\/head>'); parent.content.document.writeln('<body bgcolor="green" text="silver">'); parent.content.document.writeln('<h2 align="center">Dynamically created page content<\/h2>'); parent.content.document.writeln('<\/body><\/html>'); parent.content.document.close(); } </script> </head> <body> <p><a href="javascript:void createPage7();">Page 7</a></p> </body>
<script> var page = new Array("page1.html", "page7.html", "page8.html"); var ctr = 0; function setContent(n) { if (n<0 || n>=page.length) { self.content.document.writeln('<html><head><title><\/title><\/head>'); self.content.document.writeln('<body><h2 align="center">Invalid page requested: ' + n + '<\/h2>'); self.content.document.writeln('<\/body><\/html>'); self.content.document.close(); } else { self.content.document.location.href = page[n]; ctr++; // ctr is only used for display on page8.html } }</script>
<p><a href="javascript:void parent.setContent(0);" target="content">Page 1</a></p> <p><a href="javascript:void parent.setContent(1);" target="content">Page 7</a></p> <p><a href="javascript:void parent.setContent(2);" target="content">Page 8</a></p> <p><a href="javascript:void parent.setContent(3);" target="content">Out of range</a></p>
<script> document.writeln('<h3 align="center">Page requests so far: ' + parent.ctr + '<\/h3>'); </script>
<frameset cols="150,*" frameborder="no"> <frame name="nav" src="nav6.html" id="nav" /> <frameset rows="75,*" frameborder="no"> <frame name="banner" src="banner.html" id="banner" /> <frame name="content" src="page1.html" id="content" /> </frameset>
<html> <head> <title></title> <script src="nav6.js"></script> </head> <body onload="initLinks();"> <p><a href="page1.html">Page 1</a></p> <p><a href="page9.html">Page 9</a></p> <p><a href="page10.html">Page 10</a></p> </div> </body> </html>
window.onload = initLinks(); function initLinks() { for (var i=0; i<document.links.length; i++) { document.links[i].target="content"; } }
<a href="javascript:void frame1.document.location.replace('page1.html');">Page 1</a>
<script> function createPage() { frame1.document.writeln('<html><head><title><\/title><\/head>'); frame1.document.writeln('<body text="black"><h3 align="center">Dynamic Content<\/h3>'); frame1.document.writeln('<\/body><\/html>'); frame1.document.close(); } </script>
<a href="javascript:void createPage();">Dynamic content</a>