Events - click, mousedown, mouseup, and dblclick

Registration
Events

The following events are registered:

Elements

The events are registered on the following elements:

Miscellaneous

Event properties



These properties belong to the last event that fired.

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.

Test elements

This link is a test element.

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.

This form is a test element, and all of its fields are test elements, too. The text field has the HTML5 required attribute.


Date
Number
Range