Document parentWindow : document « Javascript Objects « JavaScript DHTML






Document parentWindow

 
    
<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.'expando' Example
2.Active Element
3.Document 'URLUnencoded' Example
4.'URL' Example
5.Create a Comment
6.'write()' Example
7.'writeln()' Example
8.Execute Command
9.Document referrer
10.Document compatMode
11.Document design Mode
12.Document doctype
13.Document Domain
14.Document title Example
15.Document Link color
16.Use document.links collection
17.Print page out
18.Expose the prperties of Objects