早上发现的奇怪Js现象...........
a.htm
早上,在CSDN看到以前兄弟发现一个关于刷新窗口的问题,我把代码复制来试了试这种办法,不行,呵,真是觉得怪,不解中。。。。希望朋友们解释,谢........
aaa.htm文件
<!--body onunload="self.opener.document.refresh()"-->
<body bgcolor="#fef4d9" onunload="leave()"><script LANGUAGE="JavaScript">
function leave() {
self.opener.location.reload();
}
</script>
aa.htm文件
<input type="button" name="xxxxaaaaaaaaaaaaaa" value="xxx" onclick="window.open('my.htm','','toolbar=no,menubar=no,location=no,height=225,width=235');">
</body>
他想点了aa.htm文件中的button打开aaa.htm文件,在关闭aaa.htm文件的同时,自动刷新a.htm!