PDA

View Full Version : open more then 2 frames at one click


web4u
10-15-2002, 09:00 PM
In the "open 2 frames" script, how do i open more then 2 frames at one click???

Thanks,

ConfusedOfLife
10-15-2002, 09:53 PM
Can you be more specific?

web4u
10-15-2002, 10:12 PM
Well i just put this OnClick:

<a href="3.htm" onClick="parent.frame2.location='4.htm'">

and it works - it opens another page in another frame.

But how can i add more OnClick events to the same link?

I found this code for it:
<script>
function muchoframes()
{
parent.frame1.location='6.htm
parent.frame2.location='7.htm
}
</script>

But it's not working...

Any help?

THANKS!

Nightfire
10-15-2002, 10:12 PM
Oi, stop with the cross posting everywhere! It's friggin annoying.

<script>
function muchoframes()
{
parent.frame1.location='6.htm';
parent.frame2.location='7.htm';
}
</script>

<a href="page3.htm" onclick="javascript:muchofframes()">Click</a>

Quiet Storm
10-16-2002, 12:01 AM
<A HREF="#" onClick="parent.frame1.location='6.htm'; parent.frame2.location='7.htm';">link</A>

-or-

<A HREF="javascript:window.open('6.htm', 'frame1');window.open('7.htm','frame2');">link</A>

web4u
10-16-2002, 06:29 PM
Thanks so much!



Originally posted by Quiet Storm
<A HREF="#" onClick="parent.frame1.location='6.htm'; parent.frame2.location='7.htm';">link</A>

-or-

<A HREF="javascript:window.open('6.htm', 'frame1');window.open('7.htm','frame2');">link</A> :)

web4u
10-16-2002, 06:40 PM
Thanks so much!