1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Calling a function across frames

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by igraws, 2003/08/08.

Thread Status:
Not open for further replies.
  1. 2003/08/08
    igraws

    igraws Inactive Thread Starter

    Joined:
    2003/08/08
    Messages:
    4
    Likes Received:
    0
    I have a button inside iframe. I need this button to execute a function located in outer frame.
    For IE I can set onclick= "top.myFunction() "
    How to do this for NetScape?
    Thanks.
     
  2. 2003/08/09
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2

  3. to hide this advert.

  4. 2003/08/10
    igraws

    igraws Inactive Thread Starter

    Joined:
    2003/08/08
    Messages:
    4
    Likes Received:
    0
    Hi Ramona,

    Thank you for useful links. I followed them and found the solution which is as follows:
    onclick= "parent.myFunction() "
    It works for both IE and Netscape.

    Thanks again,

    igraws
     
    Last edited: 2003/08/10
  5. 2003/08/10
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2
    Hi igraws,

    Thanks very much for posting back with your solution. Did you by chance find your code on the W3C Recommendations page?

    Ramona :D
     
  6. 2003/08/10
    igraws

    igraws Inactive Thread Starter

    Joined:
    2003/08/08
    Messages:
    4
    Likes Received:
    0
    Hi Ramona,

    Yes, I found many hints and useful guidelines on the W3C Recommendations pages to solve my original problem. But then I encountered other problems which rather look like browser-specific defects or bugs. If lucky, one can find "tricks" to avoid most of those bugs.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.