JavaScript Reference/Javascript Properties/right
"right" Example
<html>
<body>
<p id="myP" style="background-color:black; color:white; width:200;">
This is some sample text.
</p>
<button onclick="alert(myP.getBoundingClientRect().right);">Right</button>
</body>
</html>
"right" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |TextRectangle |
+----------------+--------------------------------------------------------------+
"right" Syntax and Note
Note:
Read and write property.
Sets the right coordinate for the container object.
Syntax:
textRectangleName.right = value