我试图让当用户在警报上单击“确定”时,它将允许我的网站弹出窗口。我目前的代码是:
var w = window.open( "urls","_blank", "height = 200, width = 300, top=450, left=1025" );
if(w == null || typeof(win) == "undefined" || win.location.href == 'about:blank') {
alert("You must allow pop ups before continuing, click the button to allow pop ups");
}
请问我如何实现这一点,或者如果不可能,我如何实现一种方法,以便他们可以轻松地允许我的网站弹出窗口,而无需通过进入浏览器设置来要求他们允许。
非常感谢