Disabling the copy, cut & paste operations on password fields ensures that the user doesn't enter invalid password as the user need to type the password again in the configure field rather than copying it from the original password field. It also improves the security as nobody's password can be copied to the clipboard. But this only works when the client has javascript enabled or else this will fail.
JQuery script:-
$("input[type=password]").bind("cut copy paste", function (e) {
e.preventDefault();
});
JQuery script:-
$("input[type=password]").bind("cut copy paste", function (e) {
e.preventDefault();
});
Comments