web analytics
Saturday, June 21, 2025
HomeInternetView Hidden Passwords Behind Asterisks

View Hidden Passwords Behind Asterisks

While entering the password for any login page or web page, the passwords are masked as asterisk so that people around you can’t view the password your entered. Most of the time, users want to view the hidden password behind asterisks to ensure that they have entered the right password on the login screen. There are many such freeware software available, but it could be very risky to use such unknown software. Therefore, we usually use the below JavaScript code whenever needed. It requires no installation, is safe, and very easy to use.

This simple JavaScript code displays the hidden asterisk password character on the screen. You just need to copy the script and paste it into the browser’s address bar. The script is tested on Firefox, IE, Opera, Safari & Google Chrome.

Reveal Hidden Asterisk Password

View Hidden Passwords Behind Asterisks

Please copy the below code and paste it into your browser’s address bar to view the hidden password on that page. By default, when you paste the below code in the address bar, the browser will remove the javascript tag from the start of the code, so please add “javascript:” and then press Enter.

javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k<w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('There are no passwords found in forms on this page.');}function z(f){var b=false;for(var i=0;i<f.length;i++) {var e=f[i].elements;for(var j=0;j<e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){alert('Password found on this page:\n\n' +s)}else{alert('Password is blank')}return true;}}

You can just drag it below to your bookmark toolbar to make it simpler and easier for you. When you need to view the hidden password, click on the toolbar button.

Add bookmark button to Toolbar

Add password revealer – Drag this link to your bookmarks toolbar
Or
Create a new bookmark by adding the above javascript code and give any name for the bookmark as you wish, e.g. Show Password.

Reveal Hidden Asterisk Password Javascript to Bookmark

This trick comes very handy for people who often make mistakes while entering or forgetting the password.

Roshan Karkera
Roshan Karkera
Roshan Karkera is a passionate blogger and a software engineer by profession, driven by a love for technology, science, and continuous learning. With a strong belief in sharing knowledge, he started this blog to inspire and inform readers through simple, insightful content. When he's not coding or exploring the latest in tech, you’ll find him writing about ideas that matter. Connect with him on Twitter or your favorite social platform to stay updated.
RELATED ARTICLES

9 COMMENTS

  1. @ mehul, I never tested on IE 8 and 9. However this code is not working for IE 8 and 9. I will get a fix for IE soon if possible.

    •  @c28a340dcf91e0a2fe146c101e1c86fe:disqus

      In Firefox 11 and later versions, the code is not
      working, due to some security measures. Firefox will not respond to this
      JavaScript code. Alternatively, you can use Firefox console, Press Ctrl + Alt + K and paste the code and press Enter.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular