JavaScript Reference/Javascript Properties/topMargin
Версия от 18:30, 25 мая 2010; (обсуждение)
"topMargin" Example
<html>
<body id="myBody">
<button onclick="alert(document.body.topMargin);">Top Margin</button></body>
</body>
</html>
"topMargin" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> |
+----------------+--------------------------------------------------------------+
"topMargin" Syntax and Note
Note:
Read and write property.
Specifies the top margin of the <body> element in pixels.
Default value is 15.
Syntax:
document.all.bodyID.topMargin = value