I'm testing my website on Google Chrome and saw that this browser always auto-fills my username and password text boxes, even if I never said to do that. I don't want this behavior. Is there any way to stop this using PHP, CSS or JavaScript?
您可以在不希望自动填写的字段上指定autocomplete="off"
,但必须遵守浏览器的要求,并且并非所有地方都支持:
<input type="text" name="something" autocomplete="off" />
不,这是浏览器功能,您应该可以将其关闭。
You can set
<form name="form1" autocomplete="off" action=""></form>
This applies for all form elements
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.