'self' Example : self « Javascript Properties « JavaScript Reference

'self' Example

    
<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>

    
      
      








Related examples in the same category

1.'self' Syntax and Note
2.'self' is applied to