开发者

Dont allow password field to copy

开发者 https://www.devze.com 2023-04-08 12:44 出处:网络
I have this field: <form:label path=\"password\">&开发者_开发百科lt;spring:message code=\"label.password\"/></form:label>

I have this field:

<form:label path="password">&开发者_开发百科lt;spring:message code="label.password"/></form:label>
 <form:password path="password" id="password"/>

Now what can I do to make sure this password field value cannot be copied?


In (almost) all conformant browsers, inputs that are type="password" should not have any copy functionality.

See: http://jsfiddle.net/6BUGx/


Just put,

<input type="password" value="" />
0

精彩评论

暂无评论...
验证码 换一张
取 消