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
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.