//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