try this:
<SCRIPT>
function change2()
{
left_frame.src="page3.htm";
right_frame.src="page4.htm";
}
</SCRIPT>
"Arne Hendrickson" <arne@rogers.com> wrote in message
news:bb6Xb.494$s6M.257@news01.bloor.is.net.cable.r ogers.com...[color=blue]
> I had already tried that but using the name attribute:
>
> <iframe name="main" src="main.htm" height="430" align="left" width="610">
>
> I tried adding the id attribute:
>
> <iframe name="main" id="main" src="main.htm" height="430" align="left"
> width="610">
>
> as in your example but it didn't seem to help, then I tried one or the[/color]
other[color=blue]
> and both. Are the name and id attributes interchangeable? Is the problem
> using both? Also my link is in an image map, but I tried it from a text[/color]
link[color=blue]
> as well which didn't seem to make a difference.
>
>
>
> "Evgeny" <evgeny@yahoo.com> wrote in message
> news:c0ip0f$jc6$1@weber.techno-link.com...[color=green]
> > "Arne Hendrickson" <arne@rogers.com> wrote in message
> > news:1kkWb.331$cBH.110@news04.bloor.is.net.cable.r ogers.com...[color=darkred]
> > > Can anyone tell me how to edit this script for "traditional frames" to[/color]
> > work[color=darkred]
> > > with iframes?
> > >
> > > SCRIPT language="JavaScript">
> > > <!----hide
> > > function change2()
> > > {
> > > parent.left_frame.location="page3.htm";
> > > parent.right_frame.location="page4.htm";
> > > }
> > > //------>
> > > </SCRIPT>
> > >
> > > --
> > > Arne Hendrickson
> > > Set-Up Guys
> > >
arne@rogers.com
> > >[/color]
> >
> > call iframes by ID.
> >
> > <iframe id="left_frame" ...><iframe>
> > <iframe id="right_frame" ...><iframe>
> >
> > SCRIPT language="JavaScript">
> > <!----hide
> > function change2()
> > {
> > left_frame.location="page3.htm";
> > right_frame.location="page4.htm";
> > }
> > //------>
> > </SCRIPT>
> >
> >[/color]
>
>[/color]