0

Can I write another thing insted of event for examle I want when a person onclicked the function works not every event.

function a(event){ var x = event.clientX; var y = event.clientY; alert(x + "," + y) }

14th Jul 2018, 8:59 PM
Sina
Sina - avatar
1 Antwort
+ 1
element.addEventListener('click', a);
15th Jul 2018, 6:38 AM
Saikiran Rudra
Saikiran Rudra - avatar