Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    multiple frameload

    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

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    In a house
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by D2K2; 08-27-2002 at 01:05 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •