Window self : window « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- Javascript Objects
- window
Window self
<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