is element inside Iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterfsorenson
    New Member
    • Jan 2007
    • 2

    is element inside Iframe

    It must be a simple answer, but I am trying to figure out if there is a way either by mouse action or element selected if the element is INSIDE an Iframe.

    Thanks
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Are you just trying to see if the element exists in the frame? Please be a bit more specific or post your code.

    Comment

    • vituko
      New Member
      • Dec 2006
      • 48

      #3
      ie :
      if (element.docume nt.parentWindow == frame)
      mz :
      if (element.ownerD ocument.default View == frame)

      Comment

      • peterfsorenson
        New Member
        • Jan 2007
        • 2

        #4
        That was it. Thanks.

        Comment

        Working...