S.no | Contents-topics |
---|---|
1 | Introduction |
2 | Javascript code |
3 | Toggle Password Visibility using JavaScript |
Toggle Password Visibility is most commonly used in most sites to show you that you can crosscheck whether you have written the correct password. It is a very simple JavaScript code as you can see we created a function and in that function we have just called the document.getElementById in a variable and we will get what ever password is written in that input type.
Javascript code: Copy
Output
Also read:READ A LOCAL TEXT FILE USING JAVASCRIPT
Click the radio button to toggle between password visibility:
Password:
Show Password
0 Comments (Please let us know your query)