我如何禁用使用Javascript保存密码泡沫铬? [英] How do I disable the save password bubble in chrome using Javascript?

查看:134
本文介绍了我如何禁用使用Javascript保存密码泡沫铬?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够prevent保存密码从泡沫甚至显示

I need to be able to prevent the Save Password bubble from even showing up after a user logs in.

自动完成=关闭是没有答案的。

Autocomplete=off is not the answer.

我还没有碰到过一个帖子,提供了针对此问题的安全的解决方案。难道真的没有办法禁用在Chrome ??密码泡沫

I have not come across a post that offers a secure solution for this issue. Is there really no way to disable the password bubble in Chrome??

推荐答案

我发现没有支持的方式来做到这一点。

I found there is no "supported" way to do it.

我所做的就是密码的内容复制到一个隐藏字段,同时删除密码输入前递交。

What I did was copy the password content to a hidden field and remove the password inputs BEFORE submit.

由于没有提交时出现页面上的任何密码的字段,浏览器就不会要求保存它。

Since there aren't any passwords fields on the page when the submit occurs, the browser never asks to save it.

下面的(使用jQuery)我的javascript code:

Here's my javascript code (using jquery):

function executeAdjustment(){       
        $("#vPassword").val($("#txtPassword").val());
        $(":password").remove();        
        var myForm = document.getElementById("createServerForm");
        myForm.action = "executeCreditAdjustment.do";
        myForm.submit();
    }

这篇关于我如何禁用使用Javascript保存密码泡沫铬?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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