JavaScript Reference/Javascript Properties/bottomMargin

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

"bottomMargin" Example

   <source lang="javascript">
   

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


     </source>
   
  


"bottomMargin" is applied to

   <source lang="javascript">

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

     </source>
   
  


"bottomMargin" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Specifies the height in pixels of the <body> bottom margin. The default value is 15.

Syntax:

document.all.bodyID.bottomMargin = value


     </source>