Firefox浏览器中,input输入框输入的内容在刷新网页后为何还在?

转自:http://www.webym.net/jiaocheng/473.html

这个问题比较容易解决,如果不希望浏览器保留以前输入的内容,只要给对应的 input 输入框加上以下参数:

autocomplete="off"

autocomplete 默认值是 on,即默认开启,它的作用是把输入框以前的输入记录显示出来,使用举例:

<input name="TestInput" type="text" tabindex="1" autocomplete="off">
原文地址:https://www.cnblogs.com/sharpest/p/9023297.html