为什么要“阻止此页面创建其他对话框”出现在警告框中? [英] Why "Prevent this page from creating additional dialogs" appears in the alert box?

查看:175
本文介绍了为什么要“阻止此页面创建其他对话框”出现在警告框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Rails 3应用程序中,我这样做:

  render:js => alert(\Error!\\\\
Empty message sent.\);如果...

有时,在此错误消息下方(在同一个警报框中),我看到:阻止这个页面创建额外的对话框和一个复选框。



这是什么意思?

不显示这个额外的文本和复选框?



我使用Firefox 4.

解决方案



作为一名网页开发人员,您无法将其禁用。

这是一项浏览器功能,可以阻止网站一遍又一遍显示恼人的警报框。 p>

In my Rails 3 application I do:

render :js => "alert(\"Error!\\nEmpty message sent.\");" if ...

Sometimes, below this error message (in the same alert box) I see: "Prevent this page from creating additional dialogs" and a checkbox.

What does this mean ?

Is that possible not to display this additional text and checkbox ?

I use Firefox 4.

解决方案

It's a browser feature to stop websites that show annoying alert boxes over and over again.

As a web developer, you can't disable it.

这篇关于为什么要“阻止此页面创建其他对话框”出现在警告框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆