'layerX' Example : layerX « Javascript Properties « JavaScript Reference

JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » layerX 
'layerX' Example

function function1(myEvent) { 
   document.getElementById("myX").innerHTML = myEvent.layerX;
   document.getElementById("myY").innerHTML = myEvent.layerY; 

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

Related examples in the same category
1.'layerX' Syntax and Note
2.'layerX' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.