JavaScript Reference/Javascript Properties/leftMargin
Версия от 18:30, 25 мая 2010; (обсуждение)
"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