37 users online (1 members and 36 guests)  


  Results 1 to 3 of 3

Related

  1. targets    Forum: HTML Forum
    Replies: 1
  1. #1
    Adminsan's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    2

    1 link, 2 targets

    Is it possible to have a link in my left frame that loads separate pages in both the left and right frames?

    For example, the left frame lists various languages (English, French, Klingon, etc.) and the right frame contains my biography. If I click 'French' in the left frame, the menu changes to French and so does my biography.

  2. #2
    Adminsan's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    2

    Re: 1 link, 2 targets

    I found that the following works, but requires 2 clicks. I need it in 1 click...

    <a class="mlink" href="biography_in_klingon.html" target="mainframe"><a class="mlink" href="menu_in_klingon.html" target="menuframe">Klingon</a></a>

  3. #3
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: 1 link, 2 targets

    This would be very simple to do using a server-side scripting language such as PHP. You should also be able to use JavaScript for it. Give the following a try:

    HTML Code:
    <a class="mlink" href="biography_in_klingon.html" target="mainframe" onclick="window.location.replace('menu_in_klingon.html')">Klingon</a>
    If someone has a better way to do this, feel free, since my specialty is PHP, not JS.



Tags for this Thread