1、默认情况下AutoComplete是打开的。见IE-工具-内容-自动完成选项。

<form> 
请双击文本框 
<input type="text" name="wd"> <input type="text" name="email"> 
</form> 

 

 

2、有时候我们并不需要AutoComplete,例如需要用户自己再次输入而非自动完成。只要将所在表单元素的autocomplete属性设置为off即可。

 

<form> 
请双击文本框 
<input type="text" name="wd" autocomplete="off"> <input type="text" name="email" autocomplete="off"> 
</form> 

 

 

3、如果所有表单元素都不想使用autocomplete功能呢,将form 添加属性autocomplete设置为off即可

<form autocomplete="off"> 
请双击文本框 
<input type="text" name="wd"> <input type="text" name="email"> 
</form> 

 

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2021-12-19
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案