JavaScript Reference/Javascript Properties/rightMargin

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

"rightMargin" Example

    
<html>
<body id="myBody">
<button onclick="alert(document.body.rightMargin);">Right Margin</button>
</body>
</html>



"rightMargin" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<body>                                                        |
+----------------+--------------------------------------------------------------+



"rightMargin" Syntax and Note

Note:
Read and write property. 
Sets the  <body> element"s right margin. 
Default value is 10.
    
Syntax:
    
document.all.bodyID.rightMargin = value