| Package | Description | 
|---|---|
| org.w3c.dom.events | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EventTarget | Event. getCurrentTarget()Used to indicate the  EventTargetwhoseEventListenersare currently being processed. | |
| EventTarget | MouseEvent. getRelatedTarget()Used to identify a secondary  EventTargetrelated to a UI
 event. | |
| EventTarget | Event. getTarget()Used to indicate the  EventTargetto which the event was
 originally dispatched. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | MouseEvent. initMouseEvent(String typeArg,
              boolean canBubbleArg,
              boolean cancelableArg,
              AbstractView viewArg,
              int detailArg,
              int screenXArg,
              int screenYArg,
              int clientXArg,
              int clientYArg,
              boolean ctrlKeyArg,
              boolean altKeyArg,
              boolean shiftKeyArg,
              boolean metaKeyArg,
              short buttonArg,
              EventTarget relatedTargetArg)The  initMouseEventmethod is used to initialize the value
 of aMouseEventcreated through theDocumentEventinterface. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.