Results 1 to 2 of 2

Thread: Cross-Browser iFrame Communication Woes.

  1. #1
    Join Date
    Dec 2005

    Cross-Browser iFrame Communication Woes.

    For use in communicating between two iframes, I was using:

    top.document.frames['someFrame'].getElementById('someID').style.width = '100px';

    However, perhaps because the iframe is being written using document.write ... FF isn't having it.

    I've since switched to:

    top.document.getElementById('someFrame').document.getElementById('someID').style.width = '100px';

    While I was able to use this same targeting to set the iframe's 'src' attribute, targeting things within the document of said iframe is proving difficult. The technique doesn't work in any of my browsers.

    Where am I going wrong?

  2. #2
    Join Date
    Dec 2005

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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