Load an Iframe in a Popup

The following links will open page 2, which contains an iframe, in a new window, each link will load a different page into that iframe.

Example 1
Example 2
Example 3

In this page

<script type="text/javascript">
<!--

function openWindow(url){
var newWin=open("page2.htm",'winName','width=600,height=300,top=200,left=250' )
newWin.focus()

newWin.window.frames["myiframe"].location=url
return false
}

//-->
</script>

<a href="Iframepage1.htm" onclick="return openWindow(this.href)">Iframe Page 1</a> 
<a href="iframepage2.htm" onclick="return openWindow(this.href)">Iframe Page 2</a> 
<a href="iframepage3.htm" onclick="return openWindow(this.href)">Iframe Page 3</a>

In page2

<iframe name="myiframe" id="myiframe" src="" style="width:550px;height:200px"></iframe>