Show and Hide Password on Checkbox Click in HTML with Javascript

<html>
  <head>
      <title> Password Show and Hide </title>
  </head>
<body>
Pasword : <input type="password" name="password" id="password" />

<br/>
<br />

<input type="checkbox" id="eye" onclick="if(password.type=='text')password.type='password'; else password.type='text';"/>Show Password


</body>

</html>

Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript