打开新浏览器窗口被 GWT 应用程序阻止
在我的gwt中,当clickEvent被触发时,我使用部署在服务器上的rpc创建一个web应用程序,并返回我用来打开新窗口的url...我知道在打开新窗口之前我必须做一些处理正因为如此,浏览器会阻止该页面,但我不知道如何使其正常工作。
url= someProcess();
Window.open(url, "Test ", "");
有什么技巧可以让弹出窗口不被阻止吗? 预先感谢您的帮助
In my gwt, when a clickEvent is fired, i create a webapp using rpc that i deploy on server and i return the url which i used to open a new window...I have to do some process before opening new window , I know it's because of that that browsers block the page but I do not know how to make it functional.
url= someProcess();
Window.open(url, "Test ", "");
is there any tricks to make the popup not blocked?
Thanks in advance for your helps
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用模态窗口而不是弹出窗口,即使用弹出窗口中的信息覆盖的 div - 浏览器将无法阻止此操作。
use a modal window rather than a popup i.e. a div overlay with the information that would have been in the popup - the browser would not be able to block this.