get password field value javascript gmail
If we type a password in the password field in GMAIL, and try to copy it, we will get some content such as
●●●●●●●●●●●●●●●●●
If you want to get the password typed in the field, follow these steps.
var d=
alert( d.value );
Reference:
http://stackoverflow.com/questions/6967297/getelementsbyname-not-working
If we type a password in the password field in GMAIL, and try to copy it, we will get some content such as
●●●●●●●●●●●●●●●●●
If you want to get the password typed in the field, follow these steps.
- Install FireBug in Firefox.
- Goto http://www.gmail.com
- Type some content in the password field .
- Press F12
- If its the first time of launching firebug,Click on Enable in the Console Tab
- Now paste the following script in the Console window.
var d=
document.getElementsByName('Passwd')[0]
alert( d.value );
Reference:
http://stackoverflow.com/questions/6967297/getelementsbyname-not-working
No comments:
Post a Comment