Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes

JavaScript Programming

JavaScript > Code Examples

Parent window

Parent window <html> <head> <title>Happy Codings :-) JavaScript Code Examples</title> </head> <frameset rows="100,*" frameborder="yes" border="20px" framespacing="5" cols="*"> <frame name="topFrame" scrolling="NO" noresize src="http://javascript.happycodings.com/"> <frameset cols="41%,*" border="15px" framespacing="0" rows="*"> <frame name="topFrame" src="myInnerFrame.htm"> <frame name="mainFrame" src="http://javascript.happycodings.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> -->