Re: event.target document
Boris Zbarsky <[email protected]> Wed, 19 May 2010 23:20:26 -0400
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 5/19/10 2:31 PM, rvj wrote: > Assuming a number of document are nested with a click event handler defined > in one of the parent documents > > how do you figure out the document in which a click event actually occurred? > > As far as I can tell event.target.ownerDocument will return the document > where the event handler is event.originalTarget.ownerDocument? -Boris