How browser's identify login forms?

≡放荡痞女 提交于 2020-04-08 09:39:25

问题


I'm trying to find out: how browsers identify login forms in different sites?

Doesn't matter if I'm acessing my GMail account or some personal project, IE/Firefox always knows that that page contains login info.

Do they conclude that simply searching for input types = password or there is some cookie information involved?

Thank you in advance.

Filipe


回答1:


No only do they look for type=password they will also look for common input names for usernames and passwords.

For example most browsers will detect the following field names as login information.

<input name="login" type=text>
<input name="user" type=text>
<input name="username" type=text>
<input name="passwd" type="password">
<input name="pass" type="password">
<input name="password" type="password">



回答2:


They look for input type=password.



来源:https://stackoverflow.com/questions/1976765/how-browsers-identify-login-forms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!