window.open()重复打开窗口的问题
mz24 2003-05-18 04:20:35 调用如下的函数打开了一个名为"HideWin"的窗口,这个窗口没有关掉。当第二次调用这个窗口(用的是另一个URL),发现没有效果,不能替换掉原来的内容,也没有新开窗口,请文是什么原因?如何才能替换掉原来的内容?
function OpenHideWin(theURL)
{
if (hPopup == "")
{
hPopup = window.open("", "HideWin", "width=1,height=1,copyhistory=1,location=1,status=1,toolbar=1,directories=1,menubar=1,scrollbars=1,resizable=1,top=0,left=0");
window.focus();
hPopup.resizeTo(screen.availWidth, screen.availHeight);
}
hPopup.location = theURL;
}