Inspired by the latest Coding Horror post, here’s an code snippet that allows you to implement a password revealer using the Prototype JavaScript library.
function togglePassword(elem){
var e=$(elem);
e.type==’password’ ? e.type=’input’ : e.type=’password’;
}
Check it out in action below.
<br /> Check it out [...]