Parent window : Frame FrameSet « HTML « JavaScript DHTML






Parent window

  
    
<html>
<frameset rows="100,*" frameborder="yes" border="20px" framespacing="5" cols="*"> 
   <frame name="topFrame" scrolling="NO" noresize src="http://www.java2s.com">
   <frameset cols="41%,*" border="15px" framespacing="0" rows="*"> 
       <frame name="topFrame" src="myInnerFrame.htm">
       <frame name="mainFrame" src="http://www.java2s.com">
   </frameset>
</frameset>
</html>
<!--
Contents of myInnerFrame.htm:
<html>
<head>
<script language="JavaScript">
function P1() {
   alert(window.parent.mainFrame.document.all.CBP.innerText);
}
</script></head>
<body style="background-color:white;">
<input type="button" value="View Content of CBP" onclick="P1();">
</body>
</html>
-->
    
      
        
    
  








Related examples in the same category

1.Window top frame
2.Frame 'cols' Example
3.'rows' Example
4.'noResize' Example
5.'frameElement' Example
6.'frameBorder' Example
7.'frameSpacing' Example
8.Frameset in Javascript
9.Create frameset
10.Hide and Show Frame Example
11.Handling Load Events in a Layout Document
12.Frameset for document.URL Property Reader
13.Creating a Blank Frame
14.A blank frameset with Javascript
15.Get frame size
16.Make new frameset
17.Frameset Navigator
18.Frameset show and hide
19.Multiple Search Engine
20.File: frameset.htm
21.Reference to parent frame from inner frame