Element: pointerdown

The pointerdown event is fired when a pointer becomes active. For mouse, it is fired when the device transitions from no buttons depressed to at least one button depressed. For touch, it is fired when physical contact is made with the digitizer. For pen, it is fired when the stylus makes physical contact with the digitizer.

Bubbles Yes
Cancelable Yes
Target objects Document, Element
Interface PointerEvent
Event handler onpointerdown


Using addEventListener():

const para = document.querySelector('p');

para.addEventListener('pointerdown', (event) => {
  console.log('Pointer down event');

Using the onpointerdown event handler property:

const para = document.querySelector('p');

para.onpointerdown = (event) => {
  console.log('Pointer down event');

Browser compatibility

No compatibility data found. Please contribute data for "api.Element.pointerdown_event" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Last updated by: wbamberg,