target object javascript code example Example: event.target javascript const theTarget = someEvent.target;