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 to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    targeting multiple links syntax & Opera

    erm... my last (1st!) post has gone missing.. probably becasue it was so long and boring!... so heres the short version.

    can anyone tell me if theres a different syntax for loading multiple frames from a cell made into a link with the OnClick command, other than the following code...

    <tr>
    <td onclick="window.open('frame1.html','frame1'); window.open('frame2.html', 'frame2');"
    onmouseover="this.style.backgroundColor='#FF00FF';this.style.cursor='hand'; this.style.color='#FFFFFF';" > text label </td>
    </tr>

    In opera, this code forces all the links to open in seperate tabs/windows rather than loading them into the proper frames.
    im thinking that i should be using something like:

    onClick="parent.frame1.location.href="frame1.html";

    but i dont know if this is correct (i cant get it to work anyway) and i dont know how to add multiple targets to it either

    cheers very much for any help, this is really frustrating me now... no one seems to know the answer.

    thanks,
    Mike

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try: onclick="document.frames['frame1'].location.href='frame1.html';document.frames['frame2'].location.href='frame2.html'"

    Or: onclick="document.frames['frame1'].src='frame1.html';document.frames['frame2'].src='frame2.html'"

    And watch nesting double quotes within double quotes....

    .....Willy


  •  

    Posting Permissions

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