javascript - Field shown as autofilled by browser, is blank when accessed with js -


I have a login form that is automatically filled with the username and password by the browser. I'm seeing this issue on Chrome - where the password field is shown as auto-fill in the browser, but when I use its value via javascript, it's empty.

Does anyone press this issue?

The values ​​are most likely to be filled in. After the page, the page is sung completely. I can not tell you how or how you are trying to get the values ​​through your javascript, but if you do this without loading the full page, then you will not get any results. To reach the field, window.load - Try inventing at the bottom of the body.

Example:

  & lt; Script & gt; // page loaded after window.onload = getPasswordFunc; & Lt; / Script & gt; & Lt; / Body & gt;  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -