JavaScript: How To View Password Behind Asterisks (********)?



Viewing password behind asterisks seems to be a tedious task, but there is a Javascript with the help of which you can easily view password behind ********.
  • Copy and paste the below JavaScript on browser address bar:

    javascript:(function(){var%20s,F,j,f,i;%20s%20=%20%22%22;
    %20F%20=%20document.forms;%20for(j=0;%20j<F.length;%20++j)
    %20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)
    %20{%20if%20(f[i].type.toLowerCase()%20==%20%22password%22)
    %20s%20+=%20f[i].value%20+%20%22\n%22;%20}%20}%20if
    %20(s)%20alert(%22saneh%20:%20The%20Password%20On
    %20This Page:\n\n%22%20+%20s);%20else%20alert(%22There%20are
    %20no%20passwords%20in%20forms%20on%20this
    %20page.%22);})(); 
  • It will show the password in prompt window. 
You can also download JavaScript from here.

    Sharing is Caring

    Related Posts

    Previous
    Next Post »

    2 comments

    comments
    Anonymous
    January 7, 2013 at 5:51 PM delete

    Hi,
    IE- working
    Firefox - Not working

    Reply
    avatar
    January 7, 2013 at 5:53 PM delete

    @Anonymous: Hi, follow it for running it on firefox as newer versions does not support directly to tun from address bar!

    Reply
    avatar

    Thank you for your comment.