JavaScript Reference/Javascript Properties/left

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

"left" Example

   <source lang="javascript">
   

<html> <body>

This is some sample text.

<button onclick="alert(myP.getBoundingClientRect().left);">Left</button> </body> </html>


     </source>
   
  


"left" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |TextRectangle | +----------------+--------------------------------------------------------------+

     </source>
   
  


"left" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Specifies the element left coordinate.

Syntax:

textRectangleName.left = value


     </source>