JavaScript Reference/Javascript Properties/leftMargin
"leftMargin" Example
<html>
<body id="myBody">
<button onclick="alert(document.body.leftMargin);">Left Margin</button></body>
</body>
</html>
"leftMargin" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> |
+----------------+--------------------------------------------------------------+
"leftMargin" Syntax and Note
Note:
Read and write property.
Specifies the left margin in pixels of the <body> element.
Default value is 10.
Syntax:
document.all.bodyID.leftMargin = value