Element: pointerover

The pointerover event is fired when a pointing device is moved into an element's hit test boundaries.

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


Using addEventListener():

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

para.addEventListener('pointerover', (event) => {
  console.log('Pointer moved in');

Using the onpointerover event handler property:

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

para.onpointerover = (event) => {
  console.log('Pointer moved in');

Browser compatibility

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

See also

Document Tags and Contributors

Last updated by: wbamberg,