<html> <body id="myBody" bottommargin=150> <script language="JavaScript"> function function1() { alert(window.self.myBody.bottomMargin); } </script> <input type="button" value="Bottom Margin" onclick="function1();"> </body> </html>