...

View Full Version : multiple frameload



emma85
08-27-2002, 12:50 PM
cheeeeeers,

I was thinking, how can I load two (or more) different frames in the same frameset by just clicking o n e link?

//Emma

D2K2
08-27-2002, 01:03 PM
When you have 2 frames called A and B:

<a onClick="javascript.changeframes()">
<script>
function changeframes(){
parent.A.location="http://www.blagh.com"
parent.B.location="http://www.etc.com"
}
</script>

This can be done without a script, but its much harder to read and modify as just a link.

<a onClick="parent.A.location='http://www.blagh.com';parent.B.location='http://www.etc.com'">LINK</a>

You would obviously change the frame names, and maybe add more frames for your site, etc.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum