JavaScript -- Window-框架

时间:2022-09-16 14:06:31

-----025-Window-框架.html-----

 <!DOCTYPE html>
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
     <title>标题</title>
 </head>
 <frameset rows="30%, 70%" frameborder="0">
     <frame src="026-Window-子框架.html"></frame>
     <frame src="026-Window-子框架.html"></frame>
 </frameset>
 </html>

-----026-Window-子框架.html-----

 <!DOCTYPE html>
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
     <title>标题</title>
 </head>
 <body>
 <br/><br/>
 <center><h2>子框架</h2></center>
 <script type="text/javascript">
     document.write("<center><h4>父窗体有" + parent.length + "个子框架</h4></center>")
 </script>
 </body>
 </html>

JavaScript -- Window-框架