event.detail vs event.element difference code example
Example: javascript difference between target and currenttarget
target = The element that triggered event.
currentTarget = The element that has the event listener.
target = The element that triggered event.
currentTarget = The element that has the event listener.