frame collection versus gEBI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Poulos

    frame collection versus gEBI

    If I have an IFRAME named and ID'd "main" why is it that while

    document.frames["main"].name
    ==
    document.getEle mentById("main" ).name


    document.frames["main"]
    !=
    document.getEle mentById("main" )
    ?

    Andrew Poulos
  • David Mark

    #2
    Re: frame collection versus gEBI

    On Oct 28, 9:22 pm, Andrew Poulos <ap_p...@hotmai l.comwrote:
    If I have an IFRAME named and ID'd "main" why is it that while
    >
    document.frames["main"].name
    That is an odd mix of bracket and dot notation. Why not
    document.frames .main.name?
    ==
    document.getEle mentById("main" ).name
    Certainly that assertion should be true.
    >
    document.frames["main"]
    !=
    document.getEle mentById("main" )
    The first one is a window object. The other is an element. Of course
    they are not equal. (!)

    Comment

    Working...