2
I created a label with the cursor position, I want that label to be always grabbed cm the cursor. I created this, it works, but not behind the cursor.
var x = ev.clientX;
var y = ev.clientY;
var info_souris = document.getElementById("position_souris");
info_souris.innerHTML = x + "," + y;
<label id="position_souris"></label>
Right, but I wish the label was always behind the cursor.
– akm
Ahhh yeah, got it, hold on then
– Renato Gama
Is that what you want? Look at my @akm edition
– Renato Gama
That’s right, thank you
– akm