IE不允许自动关闭本窗口,测试发现不是总会弹框警告。![]()
参照 http://www.guyfromchennai.com/?p=18
function openPopup(winname,purl)
{
wndAttr = "width=500,height=400,left=100,top=100";
var w = window.open(purl, winname, wndAttr);
w.focus();
}
<a xhref="javascript:openPopup('one','popup1.html')" mce_href="javascript:openPopup('one','popup1.html')">Test Popup 1</a>
<a xhref="javascript:openPopup('two','popup2.html')" mce_href="javascript:openPopup('two','popup2.html')">Test Popup 2</a>