打开新浏览器窗口被 GWT 应用程序阻止

发布于 2024-11-26 02:57:08 字数 239 浏览 5 评论 0原文

在我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

这样的小城市 2024-12-03 02:57:08

使用模态窗口而不是弹出窗口,即使用弹出窗口中的信息覆盖的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文