JavaScript Reference/Javascript Properties/right

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

"right" Example

   <source lang="javascript">
   

<html> <body>

This is some sample text.

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


     </source>
   
  


"right" is applied to

   <source lang="javascript">

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

     </source>
   
  


"right" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Sets the right coordinate for the container object.

Syntax:

textRectangleName.right = value


     </source>