PDA

View Full Version : Open more then 2 frames with 1 link


web4u
10-15-2002, 09:54 PM
Thanks Nightfire,

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!

ConfusedOfLife
10-15-2002, 10:07 PM
I think you're cross posting!
You can't have more than one onClick, but you can define lots of actions for that by seperating them by a semicolon (;). I think using a function is a better idea.

mordred
10-15-2002, 10:11 PM
Stop starting a new thread for each post you submit, stay in the threads you've opened.

And read the posting rules (http://www.codingforums.com/postguide.htm) now!

web4u
10-15-2002, 10:30 PM
Thanks,
But what is a semicolon? how can i use in this case Function?

Thanks.

Originally posted by ConfusedOfLife
I think you're cross posting!
You can't have more than one onClick, but you can define lots of actions for that by seperating them by a semicolon (;). I think using a function is a better idea.

Nightfire
10-15-2002, 10:44 PM
Gave the answer in this one of many threads/posts

http://www.codingforums.com/showthread.php?s=&threadid=8095