JavaScript Reference/Javascript Properties/x

Материал из Web эксперт
Перейти к: навигация, поиск

"x" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript"> function function1() {

   myX.innerHTML = window.event.x;
   myY.innerHTML = window.event.y; 

} </script>

X: 0

Y: 0

</body> </html>


     </source>
   
  


"x" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |event | +----------------+--------------------------------------------------------------+

     </source>
   
  


"x" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Sets the cursor X coordinate.

Syntax:

window.event.x = value


     </source>