JavaScript: Linking to another page with an iFrame

Include the following script in the target page (the one with the iFrame):

<script> function getSource() { ifsrc=location.search.substring(1) ifsrc=ifsrc.substring(6,ifsrc.length) document.getElementById('iFrameName').src = ifsrc } </script>

The caller link from another page should look:

<a name="<name of the page to load in the iFrame>" href=# onclick="location.href='<name of the page containing the iFrame>?ifsrc='+this.name">go to intro</a>

More info.