How can I get the window object that an HTML node belongs to using JavaScript?

Posted by Joel Anair on Stack Overflow See other posts from Stack Overflow or by Joel Anair
Published on 2008-10-21T23:56:02Z Indexed on 2010/04/28 10:33 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

Because of several iframes, XUL browser elements, and so forth, I have a number of window objects in my XULRunner application. I'm looking for the best way to find the window object that a specified node belongs to using JavaScript.

So, to be more specific, given node x, I need to find the specific window object that contains x.

© Stack Overflow or respective owner

Related posts about xul

Related posts about xulrunner