--- url: "https://www.w3.org/WAI/WCAG22/Techniques/general/G212" titulek: "G212: Using native controls to ensure functionality is triggered on the up-event. | WAI | W3C" h1: "Technique G212:Using native controls to ensure functionality is triggered on the up-event." popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:34:20" znaku: 3287 slov: 511 kodovani: "utf-8" sha256: "a3c998e20e95b10dd9a8a547fad28ed082d8ba4dca5c2ad72e2b3ee6a06c03a6" --- # Technique G212:Using native controls to ensure functionality is triggered on the up-event. ## About this Technique This technique relates to [2.5.2 Pointer Cancellation](https://www.w3.org/WAI/WCAG22/Understanding/pointer-cancellation) (**Sufficient**). This technique applies to nearly all technologies. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to ensure that users who attempt to interact with a control do not trigger the action of the event accidentally. This can be accomplished most directly by relying on the pointer's up-event (for example, the onclick or mouseup event). The easiest way to meet this success criterion is simply to use the default behavior of controls and not override that behavior with an explicit down-event trigger. The up-event is the default behavior for almost all controls and any programming or markup language. In native languages where a control is fired on the down event it is usually for good reason and is easily recoverable. For instance, an HTML input element could have the cursor enter the editable area on the “pointer down” event, because the action is trivially reversible, and as such meets the requirements of the Pointer Cancellation SC. This is because if the user realizes they made a mistake after pressing down the control, they can simply move their pointer away from the hit area while still holding down the pointer, then release their pointer and the event is not triggered. ## Examples ### Example 1: Using a native onclick event in JavaScript In JavaScript native onclick events are triggered on the up-event by default. ### Example 2: Using a native button or link in HTML In HTML native `