HTML / CSS / JS:如何强制浏览器从非“密码”类型输入保存密码? [英] HTML/CSS/JS: How to force browser to save password from a non-'password' type input?

查看:306
本文介绍了HTML / CSS / JS:如何强制浏览器从非“密码”类型输入保存密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事情是,我有两个类似于用户名和密码的值,但实际上是2个随机生成的GUID,用户用来登录到我做的网站 - 他们不是一个真正的用户名和密码,但与GUID我尝试复制此组合。

The thing is that I have two values which are similar to a username and password, but are actually 2 randomly generated GUID's that users use to login to a website I made - they are not really a username and password, but with the GUIDs I try to replicate this combination.

通常浏览器会询问您是否要在看到元素的type ='password'属性时保存提供的登录值。但是,type ='password'属性会在字段中输入GUID很难,因为您看不到您键入的内容。

Usually browsers ask you if you want to save the provided login values when seeing the type='password' attribute for an element. However, a type='password' attribute would make typing a GUID in a field rather difficult, since you can't see what you are typing.

你强制或欺骗浏览器保存用户名/密码组合而不使用type =password属性?

So, how would you force or trick the browser to save a username/password combination without using the type="password" attribute?

谢谢!

推荐答案

查看Brad的答案:

http://stackoverflow.com/questions/4004313/html-css-how-to-make- password-input-show-the-password / 4004329#4004329

这篇关于HTML / CSS / JS:如何强制浏览器从非“密码”类型输入保存密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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