Access to FRAMESET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GeeItsBee
    New Member
    • Oct 2007
    • 7

    Access to FRAMESET

    I have given an id to a frameset tag but find I can not get access to it from a frame when using -

    parent.document .getElementById (myName)

    If I use -

    parent.document .getElementsByT agName('framset ')[0]

    I get [object HTMLFrameSetEle ment] returned, so assume the DOM is seeing the frameset tag.

    Can anyone suggest how I can use the Id method to get into the frameset tag??

    Many thanks
  • Dasty
    Recognized Expert New Member
    • Nov 2007
    • 101

    #2
    Code:
    parent.document.getElementById(myId).contentWindow.document
    is document in frame

    but dont forget that you got access to frame's document just in case that both sites are from the same domain

    Comment

    • GeeItsBee
      New Member
      • Oct 2007
      • 7

      #3
      Tried your suggestion:-
      Code:
      parent.document.getElementById(myId).contentWindow.document
      in both Firefox and IE, and it failed.
      using
      Code:
      parent.document.getElementById(myId).contentWindow
      returned 'undefined'.

      I am trying to acces the FRAMESET from a FRAME of which FRAMESET is the parent.

      Thanks

      Comment

      Working...