我正在使用以下代码在javascript中打开一个窗口(实际上是PayPal):
win = window.open('', this.name, 'top=' + top + ', left=' + left +
', width=' + width + ', height=' + height +
', location=0, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=1');
如果 Chrome 的弹出窗口阻止程序停止创建窗口,我希望能够检测到并提醒用户。是否有某种测试我可以运行win
以查看它是否真的打开过?