我目前正在使用
window.open(url).blur()
window.focus()但这只能在chrome中正常工作。在IE中,窗口在加载完成后会重新打开。在firefox中,窗口根本不会被打开。别担心,这个弹出框不会让人讨厌,因为用户会期望它/想要它。
发布于 2011-01-25 14:39:05
您也可以使用jquery ui's dialog来实现类似的结果。
发布于 2013-04-23 05:01:34
window.open(popURL,
popID,
'toolbar=0, scrollbars=1,location=1,statusbar=1,menubar=0,resizable=0,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);https://stackoverflow.com/questions/4790646
复制相似问题