• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Technologie Internetowe dla developerów
  2. Lista Web API
  3. Event
  4. event.currentTarget
  • Change language
  • View in English

event.currentTarget

Podsumowanie

Pozwala zidentyfikować obecnie zarejestrowany element docelowy zdarzenia.

Składnia

referencjaDoWęzła = event.currentTarget

Parametry

  • referencjaDoWęzła to referencja do obiektu węzła DOM

Przykład

 if e.currentTarget != t_el
    resetEventEngine();

Specyfikacja

currentTarget

Last modified: Apr 10, 2021, by MDN contributors

Change your language

Related Topics

  1. Event
  2. Constructor
    1. Event
  3. Własności
    1. bubbles
    2. cancelable
    3. cancelBubble
    4. composed
    5. currentTarget
    6. defaultPrevented
    7. eventPhase
    8. This API has not been standardized. explicitOriginalTarget
    9. isTrusted
    10. This API has not been standardized. originalTarget
    11. returnValue
    12. This deprecated API should no longer be used, but will probably still work. srcElement
    13. target
    14. timeStamp
    15. type
  4. Metody
    1. composedPath
    2. This deprecated API should no longer be used, but will probably still work. initEvent
    3. This API has not been standardized. msConvertURL()
    4. preventDefault
    5. stopImmediatePropagation
    6. stopPropagation
  5. Events
    1. bubbles
    2. cancelable
    3. cancelBubble
    4. composed
    5. composedPath
    6. currentTarget
    7. defaultPrevented
    8. Event
    9. eventPhase
    10. This deprecated API should no longer be used, but will probably still work. initEvent
    11. isTrusted
    12. preventDefault
    13. returnValue
    14. stopImmediatePropagation
    15. stopPropagation
    16. target
    17. timeStamp
    18. type
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies