jeti wrote:
> Since I'm working out of an XUL overlay, the window
> is always the same. I can check whether
> evt.target.ownerDocument== window._content.document
>
> But that doesn't tell me whether it's an iframe or a
> regular frame.
Hmm... if you want to differentiate iframes from regular frames... You
could get the parent window of the window your document lives in, get
its document, then getElementsByTagName("iframe").... not sure whether
there's a good way to go from an iframe object to its contained document
or window to compare, though....
There's some code in nsEventStateManager.cpp that tries to do what you
said, but it uses the internal nsIDocument interface... :(