日期:2014-05-17  浏览次数:20721 次

f5刷新问题
 
 页面上有个input 影藏文本 默认为false
 通过Ajax访问后台后input值改为true
  在IE6中按F5刷新页面input值重置为false
  在火狐中按F5刷新页面 input值还是为true
 求解,让火狐中的按F5,input值重置为false

------解决方案--------------------
window.onload=function()
{
 document.getElementById("x").setAttribute("value","false")
}
------解决方案--------------------
HTML code

试下
<input type="text" autocomplete="off" />

------解决方案--------------------
貌似楼上的比较准确。