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) }
1 Resposta
+ 1
element.addEventListener('click', a);