我如何从A窗体,弹出B窗体后,B窗体关闭,然后刷新A窗体那!
A.hmtl<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head><body>
<input type="button" name="clickB" value="弹出B窗体" onclick="window.open('B.html')" />
</body>
</html>
B.html<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<script language="javascript">
function returnAFrom()
{
alert("成功返回A");
         window.close();
location.replace("A.html");
}
</script>
</head><body onload="init()">
<input type="button" name="clickA" value="返回A窗体" onclick="returnAFrom()"/>
</body>
</html>
请各位前辈指正!在php里应该怎么做!