Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

target vs currenttarget

<!---- event.target vs event.currentTarget ----------------------------->

target 		  => Element that triggered event

currentTarget => Element that has the event listener 

<!----------------------------- event.target vs event.currentTarget ---->
 
PREVIOUS NEXT
Tagged: #target #currenttarget
ADD COMMENT
Topic
Name
6+4 =