Answers for "html onclick stop propagation"

1

onclick stoppropagation

<span onclick="event.stopPropagation(); alert('you clicked inside the header');">something inside the header</span>
Posted by: Guest on May-01-2020
0

html onclick stop propagation

// "event" is not universally supported, so instead grab the first
// argument passed through the onclick handler and call
// "stopPropagation()" on it
<div onclick="(arguments[0] ? arguments[0].stopPropagation() : false);">...</div>
Posted by: Guest on July-01-2020

Code answers related to "html onclick stop propagation"

Browse Popular Code Answers by Language