View Full Version : opening in 2 frames


toolman
01-09-2004, 05:59 PM
How do i have a link that opens 2 different pages in 2 frames at the same time?

MaGiCSuN
01-09-2004, 07:15 PM
on the page from menu this should be between the <head> and </head>

<script language="JavaScript">
function changeurl()
{
parent.leftframe.location.href="frame_a.htm"
parent.mainframe.location.href="frame_b.htm"
}
</script>

and then as your link this:

<a href="javascript:changeurl();">Link</a>

change bold parts in the script coding, leftframe and mainframe are the frame names in wich the pages have to open into. .html are the pages :)

edit: java_script_ should be java script (without space).. the forum is adding those _ between it !


Love,
Mirna