<p>click inside the text input to unmask the password:</p> <input type="password" onfocus="this.type='text'" onclick="this.type='text'" onblur="this.type='password'" value="p@s$w0rd"/>