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.
+1 to your question, it was exactly what I was looking for and thanks for the hint given directly by answering yourself.
I Googled a bit and according to http://www.quirksmode.org/dom/w3c_html.html cross-browsers tables I think the right answer is:
Or maybe even better:
Plz let me know your thoughts.