e.stopPropagation();e.preventDefault(); code example Example: javascript event stoppropagation event.stopPropagation();