Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, first suggestion - don't use frames. It is very easy to include pages into each other, so just write little components like menu.html, top.html, mainpage.html and include those into your pages.</p> <p>This makes page management much easier - you reuse the code and can make the pages from those little components.</p> <p>Then when you click on the link you would just go to the page that has manu included, in the top you include the appropriate title and the main page. </p> <p>If you use some server-side language you could pass the title of the header as a parameter.</p> <p>If you really want to go with frames you would need to do something like this: Main page with frames: </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Frames Example 5&lt;/title&gt; &lt;/head&gt; &lt;frameset cols="20%,80%"&gt; &lt;frame src="page1.htm" name="left_frame"&gt; &lt;frame src="page2.htm" name="right_frame"&gt; &lt;/frameset&gt; &lt;/html&gt; </code></pre> <p>Page, that changes links: </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;frame 10&lt;/title&gt; &lt;script language="JavaScript" type="text/javascript"&gt; &lt;!-- function change() { parent.left_frame.location="page3.htm"; parent.right_frame.location="page4.htm"; } //--&gt; &lt;/script&gt; &lt;/head&gt; &lt;body bgcolor="#ffffff" text="#000000"&gt; &lt;center&gt; Click the link below to change both frames. &lt;br /&gt; &lt;a href="javascript:change2()"&gt;change 2 frames&lt;/a&gt; &lt;/center&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>so, in your menu add this javascript and change the links and reference your frames.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload