I need help with my code. I want an onmousemove event to occur when I click and move the mouse. Can someone assist me please?
</head>
<body>
<img id="myImgId" alt="" src="Chrysanthemum.jpg" width="400" height="300" />
<script type="text/javascript">
<!--
var myImg = document.getElementById("myImgId");
myImg.onmousemove = GetCoordinates;
//-->
</script>
<p>X:<span id="x"></span></p>
<p>Y:<span id="y"></span></p>