Results 1 to 3 of 3

Thread: IFRAMES and Javascript?

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    IFRAMES and Javascript?

    How do I pass information from my one IFRAME to the main page and vice versa? Its not like a normal frame, I tried the parent.frames[x] stuff but that didnt seem to work. Any thoughts?

  2. #2
    scoutt
    Guest
    well an Iframe has a name just like a regualr frame, so it shouldn't be to hard. just give the link a target name and it should work.

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    your right, its just as easy.

    FROM IFRAME to MAIN WINDOW
    window.parent.document.theform.theobject.value = "This";

    FROM MAIN WINDOW to IFRAME
    parent.frames[0].theform.theobject.value = "some jizunk";

    just in case someone is looking for this in the future

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