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

'parentWindow' Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.parentWindow.frames.length);
    }
</script>
<input type="button" 
       value="How many frames in this window?" 
       onclick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

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