Popunder适用于所有浏览器

时间:2011-01-25 06:35:16

标签: javascript jquery popup

我目前正在使用

window.open(url).blur()
window.focus()

但这只适用于chrome。在IE中,窗口在加载完成后重新启动。在firefox中,窗口根本不会消失。不要担心,这个popunder不会像用户期望的那样令人讨厌。

2 个答案:

答案 0 :(得分:-1)

window.open(popURL,
            popID,
            'toolbar=0, scrollbars=1,location=1,statusbar=1,menubar=0,resizable=0,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);

答案 1 :(得分:-2)

您还可以使用jquery ui's dialog来获得类似的结果。

相关问题