Event 'layerX' : Event Properties : Event JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event » Event Properties »

 

Event 'layerX'



    
<html>
<body>
<script>
function function1(myEvent) { 
   document.getElementById("myX").innerHTML = myEvent.layerX;
   document.getElementById("myY").innerHTML = myEvent.layerY; 

document.onmousemove = function1;
</script>
<p>
<b>Layer X Coordinate:</b> 
<span id="myX">0</span>
</p>
<p>
<b>Layer Y Coordinate:</b> 
<span id="myY">0</span>
</p>
<button onclick="alert(event.type);">Event Type</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event
» Event Properties