onClick Event

Copy Code

$w("#myElement").onClick( (event) => {

let clientX = event.clientX; // 362

let clientY = event.clientY; // 244

let offsetX = event.offsetX; // 10

let offsetY = event.offsetY; // 12

let pageX = event.pageX; // 362

let pageY = event.pageY; // 376

let screenX = event.screenX; // 3897

let screenY = event.screenY; // 362

} );