Results 1 to 2 of 2

Thread: referencing id in other frame

  1. #1

    Thread Starter
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292

    referencing id in other frame

    hello

    hello can anyone tell me how i can pass data to an element
    in another frame?

    i thought i could write

    window.parent.cat2.document.getElementById("a").innerText = "text goes here"; // or a variable in place of string


    my code can be seen here

    http://www.freecfm.com/b/bsw2112/mother.html

    the only thing that works is window.parent.cat2.document.write...
    but then my entire html skeleton is gone and i won't be able to clear it

    thank you

    bsw2112

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    It's not standard, but it works...

    Code:
    window.parent.idName.innerText='Some Text';
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

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



Click Here to Expand Forum to Full Width