Results 1 to 3 of 3

Thread: How to change content in multiple frames with a click

  1. #1
    Join Date
    Apr 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to change content in multiple frames with a click

    Hi John,

    I hope you are still around, I have been using the same code that you put up, and had no trouble with it...

    Code:
    <a href="some.htm" target="iframeone" 
    onclick="window.frames['iframetwo'].location.href='some_2.htm';return true;"
    >Whatever</a>
    However, what I am trying to achieve is to click on "Whatever" and for it to automatically display three content (htm) in three iframes, this is the code that I've been trying to work out but it doesn't seem to work:

    Code:
    <a href="some.htm" target="iframeone" 
    onclick="window.frames['iframetwo'].location.href='some_2.htm';return true;","window.frames['iframethree'].location.href='some_3.htm';return true;"
    >Whatever</a>
    The comma in the middle doesn't seem to work... what is the correct code to use? I know it's something very simple, but can't quite get it. The reason for three iframes is I'm making it for educational purposes.

    Thanks.

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,253
    Thanks
    96
    Thanked 104 Times in 102 Posts

    Default

    John passed away nearly a year and a half ago. As a general rule, if it has been more than a couple months since anyone has posted in a thread, you should start a new thread. If you need to reference the old thread, please post a reference link.
    To choose the lesser of two evils is still to choose evil. My personal site

  3. #3
    Join Date
    Apr 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by james438 View Post
    John passed away nearly a year and a half ago. As a general rule, if it has been more than a couple months since anyone has posted in a thread, you should start a new thread. If you need to reference the old thread, please post a reference link.
    I am sorry to hear about John passed away. I have since found out an answer to my question.

    Thanks for the heads up about posting a new post if the thread is a couple months old.

Similar Threads

  1. Replies: 10
    Last Post: 05-01-2017, 06:56 PM
  2. Dynamic Ajax Content & URL change on click?
    By student101 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 01-15-2012, 02:33 PM
  3. trouble using Lytebox within frames that are within multiple frames
    By maplesyrup in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 08-12-2009, 02:52 AM
  4. Image change on click, changeback on click
    By Racuda in forum Looking for such a script or service
    Replies: 2
    Last Post: 07-23-2007, 05:52 PM
  5. Replies: 1
    Last Post: 02-02-2005, 12:05 AM

Bookmarks

Posting Permissions

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