onclick event.stoppropagation() code example Example: event .stoppropagation event.stopPropagation();