JavaScript Reference/Javascript Properties/clientLeft

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

"clientLeft" Example

   <source lang="javascript">
   

<html> <body>

<button onclick="alert(myDiv.clientLeft);">clientLeft</button> 

</body> </html>


     </source>
   
  


"clientLeft" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | |<applet> | | | |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> <custom> | | |

|

| |<dir>
| | |
| | | <embed> | | |<fieldset> <form> | | |<hn> <html> | | | <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> <isindex> | | | <label> | | |<legend>
  • | | |<listing> <marquee> | | |<menu> <meta> | | |<nobr> <object> | | |
      <option> | | |

      <plaintext> | | |

                                                            |
      |                |                          <script>                      |
      |                |<select>                                               |
      |                |                                                |
      |                |                                                 |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                             
        | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "clientLeft" Syntax and Note

        <source lang="javascript"> Note: Read-only properties. Get the left side of a positioned element

        Syntax:

        document.all.elementID.clientLeft document.all.elementID.clientTop


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |