1.html
-----------------
<html>
<body>
<a onclick="window.open('2.html')" >打开儿子窗口</a>
<a onclick="if(window.sonson)window.sonson.close()" >关闭孙窗口</a>
</body>
</html>-----------------------------
2.html
-----------------------
<html>
<body>
<a onclick="window.opener.sonson=window.open('3.html')" >打开孙窗口</a>
</body>
</html>---------------------
3.html
----------------------
<html>
<body>
我是孙子
</body>
</html>
-----------------
<html>
<body>
<a onclick="window.open('2.html')" >打开儿子窗口</a>
<a onclick="if(window.sonson)window.sonson.close()" >关闭孙窗口</a>
</body>
</html>-----------------------------
2.html
-----------------------
<html>
<body>
<a onclick="window.opener.sonson=window.open('3.html')" >打开孙窗口</a>
</body>
</html>---------------------
3.html
----------------------
<html>
<body>
我是孙子
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货