'self' Example : self « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- self
'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