PDA

View Full Version : help with iframes??


j-fly
03-20-2003, 11:02 AM
hey people... this is my problem... i have 2 iframes on my website and now i want when someone clicks a link inside an imagemap that both iframes open a new page... how do i do this??

thanks in advance!
J

Spudhead
03-20-2003, 04:11 PM
function change2frames(){
document.myframe1.src="page2.html";
document.myframe2.src="page3.html";
}

Quiet Storm
03-20-2003, 04:49 PM
I use:


<a href="thispage.html" target="frame1"
onClick="javascript:window.open('otherpage.html','frame2');">
link</a>

cheesebagpipe
03-20-2003, 10:10 PM
<script type="text/javascript">

function load2(url1, url2) {
frames['firstIF'].location = url1;
frames['secondIF'].location = url2;
}

</script>

<iframe name="firstIF".......></iframe>
<iframe name="secondIF".......></iframe>

<area.......href="javascript:void load2('first_url','second_url'">