JavaScript Reference/Javascript Properties/topMargin
"topMargin" Example
<source lang="javascript">
<html> <body id="myBody"> <button onclick="alert(document.body.topMargin);">Top Margin</button></body> </body> </html>
</source>
"topMargin" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<body> | +----------------+--------------------------------------------------------------+
</source>
"topMargin" Syntax and Note
<source lang="javascript">
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
</source>