How does chrome detect login text boxes?

Viewed 181

I have a textBox, that is supposed to get an url from an user. Unfortunately, chrome autofills it with saved login name.

I would like to understand how chrome detects login input? How can I stop chrome filling this textbox?

My textbox does not have 'login' in Id or name. I could set autocomplete="off" or autocomplete = "false" for the input but I do not think it solves the problem. Tomorrow another textbox may be treated as login and I will have to redeploy code again. I need to prevent chrome thinking the input is a login textbox.

1 Answers

Instead of autocomplete="off" use autocomplete="false"

Setting the autocomplete attribute to "off" does not disable Chrome autofill in more recent versions of Chrome.

Related