View hidden passwords in a webpage using simple javascript code

Here you have a very simple javascript code that enables you to reveal typed-in or saved passwords in a webpage that are hidden under asterix.

This a cool code which unlike other password revealing softwares require no installation and can be typed in directly into the address bar of your web browser.

Copy the entire code as it is

javascript:(
function()
{
var F,f,i;
F = document.forms;
f = F[0];
for (i=0; i<f.length; ++i)
{
if (f[i].type.toLowerCase() == "password")

alert(f[i].value);
}
}
)
();


Checkout the following Screenshot


PS :

1.In line 7, it is F[0] (zero)

2.This will only work if you have not disabled javascript in your browser.

3 Comments.

  1. good one !

    but doesnt work on some forms such as ones used by IN.com

  2. WOW.. very useful….