N
N
nepster-web2015-09-19 15:51:04
HTML
nepster-web, 2015-09-19 15:51:04

By what principle does the browser determine the fields in the form as login and password?

I saw an interesting phenomenon in my project. I made a form that consists of 2 fields:
- amount
- password
And all browsers think that the amount field is a login:
0334fd662a874850bcecd6966c9f8f22.png
Actually, I have several questions:
- By what criterion do browsers draw such conclusions?
- How can I disable this behavior?
- And how to forbid for a specific field to save the password?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Matrozov, 2015-09-19
@nepster-web

Regarding disabling autocomplete, try specifying autocomplete="off" in the input attributes.
https://developer.mozilla.org/en-US/docs/Web/Secur...

L
Lans56, 2020-08-06
@Lans56

I personally like it here, everything is clear both in lines and in writing, how do you like it? https://browser-skachat.ru/chrome/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question