Asked • 04/16/19

How to stop event propagation with inline onclick attribute?

Consider the following:
something inside the header
How can I make it so that when the user clicks the span, it does not fire the `div`'s click event?

1 Expert Answer

By:

Gabriel F. answered • 10/30/19

Tutor
5.0 (85)

Full Stack Software Developer and Mentor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.