浏览器中文本框的自动填充

默认情况下AutoComplete是打开的。见IE-工具-内容-自动完成选项。
有时候我们并不需要AutoComplete,例如需要用户自己再次输入而非自动完成。只要将所在表单元素的autocomplete属性设置为off即可。

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

那么,如果所有表单元素都不想使用autocomplete功能呢?见下面的方法:

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

Tags:

Comments

No comments so far.
  • Leave a Reply
     
    Your gravatar
    Your Name
     
     
     
     
     
 
About This Website

Lamp development & SEO & Plan of Website & Project Managment

Learn more »
Follow Us (SNS)
Help & Support

more about Bruce.xu»

Get in touch

QQ: +252339382
Email: shjuto @ gmail.com

Online contact form »