JavaScript Reference/Javascript Properties/clientLeft — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"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>
| | | | | |
| |<dir><col> | | |<colgroup> <custom> | | |
| | | |
- | | | <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>
| | |<textarea> <tfoot> |
| |<thead> | | | | | | | | | <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>