Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 397 Bytes
title layout permalink tags
Simple bubbling
question
simple-bubbling
intermediate bubbling-event

What happend if I click in the p element?

How I can cancel the events?

<style>
  body * {
    margin: 10px;
    border: 1px solid blue;
  }
</style>

<form onclick="alert('form')">FORM
  <div onclick="alert('div')">DIV
    <p onclick="alert('p')">P</p>
  </div>
</form>