//parent.html;
<script language='javascript'>
function _new()
{
window.open("child.html","","");
return true;
}
</script>
<input type='button' value='create child' onclick='_new();'>
//child.html;
<script language='javascript'>
function _clse()
{
window.opener=null;
window.close();
return true;
}
</script>
<body onload='setTimeout("_clse();",1000*20)'>
this is the child;
</body>//自动关闭需要IE6.0
<script language='javascript'>
function _new()
{
window.open("child.html","","");
return true;
}
</script>
<input type='button' value='create child' onclick='_new();'>
//child.html;
<script language='javascript'>
function _clse()
{
window.opener=null;
window.close();
return true;
}
</script>
<body onload='setTimeout("_clse();",1000*20)'>
this is the child;
</body>//自动关闭需要IE6.0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货