如何检测,当浏览器中输入存储的密码进入网站的登录 [英] How can I detect when a browser enters a stored password into web login

查看:135
本文介绍了如何检测,当浏览器中输入存储的密码进入网站的登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,其检测当已输入的用户名和密码,然后使登录按钮。的问题是,如果在浏览器进入它已经记住那么登录按钮被从未启用的用户名和密码。是否有一个JavaScript的方法来检测输入此信息的浏览器?

I have a website that detects when a user name and password has been entered, then enables the login button. The problem is if the browser enters the user name and password that it has remembered then the login button is never enabled. Is there a way in JavaScript to detect a browser entering this information?

推荐答案

另外,你可以保持按钮启用,检查当它是pressed非空白输入。这将是更多的标准,正如其他人指出。

Alternatively, you could keep the button enabled and check for a non-blank input when it is pressed. This would be more standard, as others have indicated.

这篇关于如何检测,当浏览器中输入存储的密码进入网站的登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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