This page tests the click, mousedown, mouseup, and dblclick events.
I advise you to cancel the bubbling of these events, so that you don't have to wade through dozens of events.
However, when you use addEventListener
in the capturing phase and cancel the bubbling
the click events never leave the window level and click
events on the control buttons are never executed. Solve this problem by allowing the event to bubble once more.
This paragraph is a test element with tabindex="1"
.
This paragraph is a test element. This paragraph is a test element. This paragraph is a test element. This paragraph is a test element. This paragraph is a test element. This paragraph is a test element.