I have an HTML page and I want to get the position of the mouse. I do this :
document.onclick = function(click) {
if (click.clientX<340){
myControl.inputs.selection = false;
btnRotate.remove();
btnMove.remove();
clicked = false;
}
console.log("Coordonnee point X="+click.clientX+" Y="+click.clientY)
};
But I have an Iframe and when I click on it, I don't get the position. Do you have an idea ? Thank you