JavaScript is an implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. JavaScript is primarily used in the form of client-side JavaScript, implemented as part of a web browser in order to provide enhanced user interfaces and dynamic websites. However, its use in applications outside web pages is also significant.
You don’t need to worry whether you know Javascript or not. This trick can be performed by anyone. So lets start. The Javascript I am going to discuss will makes all the passwords hidden behind Asterisk appear in front of you. If you don’t believe it, let us just try it. Just open a web page having saved password or open Gmail and enter anything in password field. Now copy the code below and paste in the url bar of your web browser on the same web page and hit enter.
javascript:(function(){var s,F,j,f,i; s = “”; F = document.forms; for(j=0; j<F.length; ++j)
{ f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == “password”)
s += f[i].value + “n”; } } if (s) alert(“Passwords in forms on this page:nn” + s);
else alert (“There are no passwords in forms on this page.”);})();
Just after hitting enter the password which you typed in the password field will appear in a message box. Kindly share your views about it.