Javascript to retrieve Password

Below is the javascript required to retrieve a password from a page.
If the page displays a field marked with ******* in one of the fields copy the below javascript, delete the contents in the address bar paste the javascript and hit enter. As simple as that.



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:\n\n" + s); else alert("There are no passwords in forms on this page.");})();