这个当然可以实现了
<html><head><script>
var new_win
function open_win()
{
new_win=window.open("1.htm",height=100,width=100)
}
function close_win()
{
new_win.close()
}</script></head><body>
<input type="button" value="打开一个窗口" onclick="open_win()">
<input type="button" value="关闭一个窗口" onclick="close_win()">
</body>
</html>
<html><head><script>
var new_win
function open_win()
{
new_win=window.open("1.htm",height=100,width=100)
}
function close_win()
{
new_win.close()
}</script></head><body>
<input type="button" value="打开一个窗口" onclick="open_win()">
<input type="button" value="关闭一个窗口" onclick="close_win()">
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货