防止页面产生更多对话 [英] prevent this page from creating additional dialogs

查看:59
本文介绍了防止页面产生更多对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望隐藏消息的复选框为阻止此页面创建其他对话框



当多个alert()发生时。



请帮我隐藏此复选框的CSS或任何javascript



提前致谢

I want to hide the checkbox of the message as "prevent this page from creating additional dialogs"

when multiple alert() occurs.

Please help me to hide this checkbox by CSS or any javascript

Thanks in advance

推荐答案

你不能禁用它。

这是一个浏览器功能,旨在保护用户,如果你可以关闭它,所有那些通过对话框向用户发送垃圾邮件的网站都有办法阻止它。



所以简而言之,没有。



使您的应用程序使用它而不是反对它,不要太依赖对话框/确认。相反,有一个模态框问问题,它也是相当的:) - stackverflow [ ^ ]



-KR
You can't disable it.
This is a browser feature and is intended to protect the user, If you could turn it off, all those sites spamming users with dialogs would have a way to stop it.

So in short, no.

Make your application work with it instead of against it, don't rely on dialogs/confirmations to much. rather have a modal-box ask questions, it is pretty too :) - stackverflow[^]

-KR


这篇关于防止页面产生更多对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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