如何苏preSS的“你希望浏览器记住此密码”确认? [英] How to supress the 'Do you want the browser to remember this password' confirmation?

查看:289
本文介绍了如何苏preSS的“你希望浏览器记住此密码”确认?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个ASP.Net MVC 4移动Web应用程序,并在Android 4.0.4一个非常恼人的确认对话框出现每次我有一个窗体上的密码的时间。我点击从不的对话框,这都没有区别。我看到对话框每一次。它种废墟移动网络体验不断看到这一点。

I am creating an ASP.Net MVC 4 mobile web application and on Android 4.0.4 a very annoying confirmation dialog box is appearing every time I have a password on a form. I click "Never" on the dialog box and it makes no difference. I see the dialog every single time. It kind of ruins the mobile web experience to see this constantly.

有什么事编程,如果有的话,用晚餐preSS此对话框?我自动保存密码localStorage的所以从来没有必要让他们看到这个对话框。

What can I do programmatically, if anything, to suppress this dialog box? I save the password automatically to localstorage so there is never a need for them to see this dialog box.

对话框这样说:

确认:您希望浏览器记住此密码? (现在/记住/不)

Confirm: Do you want the browser to remember this password? (Now/Remember/Never)

推荐答案

这问题很相似,<一个href=\"http://stackoverflow.com/questions/32369/disable-browser-save-password-functionality\">another,提问者看起来在这里并没有专门讨论一个平台。不过,我认为,服用一看接受的答案,并试图将是一个良好的开端。

This question is very similar to another, where the asker didn't seem to be discussing one platform specifically. However, I think that taking a look at the accepted answer and trying that would be a good first step.

建议的方法,有将格式自动完成=关闭属性,以指示该输入的数据不应该被记住的浏览器(<一个href=\"https://developer.mozilla.org/en-US/docs/Mozilla/How_to_Turn_Off_Form_Autocompletion?redirectlocale=en-US&redirectslug=How_to_Turn_Off_Form_Autocompletion\"相对=nofollow> MDN文档)。运气好的话,Android浏览器将采取属性的说明,并没有提供存储密码。

The suggested method there was to set the autocomplete="off" attribute on the form, to indicate to the browser that data entered should not be remembered (MDN docs). With any luck, the Android browser will take note of that attribute and not offer to store the password.

这篇关于如何苏preSS的“你希望浏览器记住此密码”确认?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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