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
    May 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Accessing an iframe from another iframe in netscape

    Dear friend,

    I require your help on the following:

    I have a web page, which has 2 iframes in it. let them be iframe1 and iframe2.

    now i want to access the iframe2 from the iframe1.

    In IE it worked like this:

    id=parent.iframe2.document.getElementById('txtbox').id;

    but in Netscape it doesnt work.

    how to access or pass some information in this situation to the iframe2.

    pls help me out.

    regards,
    Kiran Kumar.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    According to the DOM, you need to use .contentDocument instead of .document. That's where your problem lies.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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