--- title: 'HTMLElement: pointerover event' slug: Web/API/HTMLElement/pointerover_event translation_of: Web/API/HTMLElement/pointerover_event ---
Событие pointerover
когда указатель входит в границы элемента обрабатываемого события.
Bubbles | Yes |
---|---|
Cancelable | Yes |
Interface | {{domxref("PointerEvent")}} |
Event handler property | onpointerover |
С использованием addEventListener()
:
const para = document.querySelector('p'); para.addEventListener('pointerover', (event) => { console.log('Pointer moved in'); });
С использованием свойство элемента onpointerover
:
const para = document.querySelector('p'); para.onpointerover = (event) => { console.log('Pointer moved in'); };
Specification | Status |
---|---|
{{SpecName('Pointer Events', '#the-pointerover-event')}} | {{Spec2('Pointer Events')}} |
{{Compat("api.HTMLElement.pointerover_event")}}
gotpointercapture
lostpointercapture
pointerenter
pointerdown
pointermove
pointerup
pointercancel
pointerout
pointerleave
onpointerover
свойство-обработчик событияDocument
: событие pointerover