更改HTML中的密码字符 [英] change password char in HTML

查看:105
本文介绍了更改HTML中的密码字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在HTML中的密码框中更改密码字符。我想将它改为■

解决方案

据我所知,这是无法完成的。密码字段由浏览器本地呈现。



您可能会建立一个基于JavaScript的解决方法,但这不会像安全,破坏自动完成和/或浏览器的内部密码管理以及其他副作用。



如果可能,我会坚持浏览器的渲染。

can I change password char, in password-box in HTML. I want to change it to ■

解决方案

As far as I know, this can't be done. The password field is rendered natively by the browser.

You could probably build a JavaScript-based workaround, but that would not be as secure, break auto-completion and/or the browser's internal password management, and have other side-effects.

If at all possible, I would stick with the browser's rendering.

这篇关于更改HTML中的密码字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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