怎样控制浏览器里面的文本框的记忆功能? 如果是document.location.href="地址"就是刷新了当然就没有内容了如果用history.back(-1)就会有记忆了楼主是这个意思吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.location.href="地址" 是指刷新整个页面么?history.back(-1) 这个是什么的属性阿?比如有的文本框能够把以前输入过的内容记忆 然后再输入的时候就能显示并选择以前输入过的内容:) <HTML><HEAD><STYLE>.storeuserData {behavior:url(#default#userData);}</STYLE><SCRIPT>function fnSaveInput(){var oPersist=oPersistForm.oPersistInput;oPersist.setAttribute("sPersist",oPersist.value);oPersist.save("oXMLBranch");}function fnLoadInput(){var oPersist=oPersistForm.oPersistInput;oPersist.load("oXMLBranch");var v=oPersist.getAttribute("sPersist");if(v)oPersist.value = v;}</SCRIPT></HEAD><BODY onload="fnLoadInput()"><FORM ID="oPersistForm"><textarea CLASS="storeuserData" ID="oPersistInput" onchange="fnSaveInput()"></textarea></FORM></BODY></HTML> 1.IE设置工具--选项--内容--自动完成--表单选中2.代码:autocomplete(默认是开启)<form autocomplete=on><form autocomplete=off><input name=aaa autocomplete=on><input name=aaa autocomplete=off> (JS高手请进):求教前台页面JS渲染Table的优化方法 求!onreadystatechange的跨浏览器解决方案? 你见过的JS常见框架有哪些? 弹出的层追加对象 prototype该用在什么情况下? 求javasccipt 分页 求合并不规则列的js http对象的具体用法?? 请问如何用javascript判断页面中是否存在某个对象,比方说document.all.abc是不是对象 如何将一个HTML赋值给一个TABLE 的一行ROW?很简单,但请相告,谢了; 自定义函数参数的问题(急) 用execCommand怎么在Iframe的指定位置插入文本。
history.back(-1) 这个是什么的属性阿?比如有的文本框能够把以前输入过的内容记忆 然后再输入的时候就能显示并选择以前输入过的内容:)
<HEAD>
<STYLE>
.storeuserData {behavior:url(#default#userData);}
</STYLE>
<SCRIPT>
function fnSaveInput(){
var oPersist=oPersistForm.oPersistInput;
oPersist.setAttribute("sPersist",oPersist.value);
oPersist.save("oXMLBranch");
}
function fnLoadInput(){
var oPersist=oPersistForm.oPersistInput;
oPersist.load("oXMLBranch");
var v=oPersist.getAttribute("sPersist");
if(v)
oPersist.value = v;
}
</SCRIPT>
</HEAD>
<BODY onload="fnLoadInput()">
<FORM ID="oPersistForm">
<textarea CLASS="storeuserData" ID="oPersistInput" onchange="fnSaveInput()"></textarea></FORM>
</BODY>
</HTML>
工具--选项--内容--自动完成--表单选中2.代码:autocomplete(默认是开启)
<form autocomplete=on>
<form autocomplete=off><input name=aaa autocomplete=on>
<input name=aaa autocomplete=off>