[HTML][JavaScript][Computer Stuff][Freeing the Mind]

Opening a link in one iframe in another iframe on the same page

If you have two iframes on one page, you can open files in a second iframe from the first. For example, one iframe could be a contents page and the pages in the contents load into the second iframe. In the example below the links in the first iframe open in the second iframe, so the pages can be viewed while remaining on this page.

Here are some articles on iframes:

  1. Iframes
  2. Iframes: Opening menu items in an iframe (JavaScript)
  3. Iframes: Opening a page from one iframe in another. (This page)

Iframe1

Iframe2

<!--The code on this page is simply the code for iframes which is shown below-->

<!-- Code for the first iframe-->

<iframe name="iframe1" src="iframeExample.htm" align="top" height="150" width="95%" hspace="10" vspace="10" align="middle">

<p>

If you can see this, your browser does not support iframes!

</iframe>

<!--Code for the second iframe-->

<iframe name="iframe2" src="index.html" align="top" height="200" width="95%" hspace="10" vspace="10" align="middle">

If you can see

this, your browser does not support iframes!

</iframe>

<!--The first iframe loads the page in the link in the second iframe because it has the following code in its links-->

<a href="anchors.htm" target="iframe2">

What's in a name - Anchors

</a>

<br />

<a href="FormSelect.htm" target="iframe2">

Menus in Forms

</a>

<br />

<a href="../JavaScript/freeEditor.htm" target="iframe2">

free java script editor to help create code.

</a>

<br />

Let's look at those unassuming but crucial Forms


[back to: no frames]
[home][contents]
[on to:   Forms]


Most Recent Revision: 18-Oct-98.
Copyright © 1998

I am always pleased to hear from you.
Send your comments to
and please visit: New Life Course