Click here to Skip to main content
15,072,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The code as follows:

function update(e) {


document.getElementById('showXY').value = 'x: ' + mousex + ' ' + 'y: ' + mousey


function init() {

document.onmousemove = update;



What I have tried:

I have tried to look for information on internet but there is no explanation about this.
Richard MacCutchan 10-May-21 7:59am
Did you write that code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900