1、默认情况下AutoComplete是打开的。见IE-工具-内容-自动完成选项。
<
form
>
请双击文本框 < input type ="text" name ="wd" > < input type ="text" name ="email" >
</ 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 >
请双击文本框 < 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 >
请双击文本框 < input type ="text" name ="wd" > < input type ="text" name ="email" >
</ form >