简体   繁体   English

“防止此页面创建其他对话框”是什么意思? 我现在该怎么办?

[英]what does “prevent this page from creating additional dialogs” mean ? what should i do now?

I just made 2 alert in my example.js file我刚刚在我的 example.js 文件中发出了 2 个警报

alert("test-javascript1");警报(“test-javascript1”);
alert("test-javascript2");警报(“test-javascript2”);

nothing else in my file我的文件中没有其他内容

and in my second alert box I got this message prevent this page from creating additional dialogs在我的第二个警报框中,我收到此消息,阻止此页面创建其他对话框

my question is why this message appears in second alert box and what should i do?我的问题是为什么此消息出现在第二个警报框中,我该怎么办? should i click on that check box?我应该点击那个复选框吗?

prevent this page from creating additional dialogs java script阻止此页面创建其他对话框 java 脚本

That is a browser thing to help users get rid of annoying sites.这是一个帮助用户摆脱烦人网站的浏览器。 If you click on that, alert s will still be fired, but you won't see them (which is not what you need if you are the developer).如果您点击它, alert仍然会被触发,但您不会看到它们(如果您是开发人员,这不是您所需要的)。

The following steps show you how disable this Firefox feature:以下步骤向您展示如何禁用此 Firefox 功能:

  1. Start Firefox, and type about:config in the url bar.启动 Firefox,然后在 url 栏中键入 about:config。 Firefox will show the preferences screen. Firefox 将显示首选项屏幕。 Please take care not to make changes at random.请注意不要随意更改。

  2. Right click in the preferences area, and choose New > Integer from the popup menu.右键单击首选项区域,然后从弹出菜单中选择新建 > Integer。

  3. In the dialog box that now appears, enter dom.successive_dialog_time_limit, followed by the value 0 (zero).在现在出现的对话框中,输入 dom.successive_dialog_time_limit,然后输入值 0(零)。 Press OK.按确定。

When you return to the Promasys WebCRF, this message will no longer appear when opening the same dialog box more than once.当您返回 Promasys WebCRF 时,在多次打开同一个对话框时将不再出现此消息。

This alert has nothing to do with your code (apart from the fact that your alert calls triggered it), it's functionality found in some browsers to prevent "run-away" alerts (because they're modal).此警报与您的代码无关(除了您的alert调用触发它的事实),它是在某些浏览器中发现的防止“失控”警报的功能(因为它们是模态的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM