Re: event.target document
"rvj" <[email protected]> Thu, 20 May 2010 06:50:39 +0100
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
... joy ! "Boris Zbarsky" <[email protected]> wrote in message news:[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