215 of 264 menu

event.currentTarget property

The event.currentTarget property contains the element an the event was assigned to. Unlike event.target, this is not the deepest tag in which the event happened, but the element to which it was attached. Most often, event.currentTarget is the same as this, but sometimes this may not be the case for some reason. In this case, you need currentTarget.

Syntax

event.currentTarget;

See also

  • the target property
    that defines the element on which an event was assigned
  • the type property
    that shows an event type
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline