2008/10/06 10:54
文章作者:9Enjoy 转载请注明原文链接。
研究了下,发现需要使用下面的代码:
head中增加:
<meta name="save" content="history">
CSS中增加:
.saveHistory {behavior:url(#default#savehistory);}
在需要保留填写的input处,加上saveHistory样式,如:
<input type="text" name="username" size="25" maxlength="15" id="username" class="saveHistory">
如果已经有一个样式,则附加上:
<input type="text" name="username" size="25" maxlength="15" id="username" onBlur="checkusername()" class="text saveHistory">
测试代码:
<HTML><HEAD>
<META content=history name=save>
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>加了历史保留功能:<BR><TEXTAREA class=saveHistory></TEXTAREA><BR>没有加的:<BR><TEXTAREA></TEXTAREA>
<P><INPUT onclick='javascript:location.href="http://www.google.com"' type=button value=点击进入,再按后退键试试?> </P></BODY></HTML>
<META content=history name=save>
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>加了历史保留功能:<BR><TEXTAREA class=saveHistory></TEXTAREA><BR>没有加的:<BR><TEXTAREA></TEXTAREA>
<P><INPUT onclick='javascript:location.href="http://www.google.com"' type=button value=点击进入,再按后退键试试?> </P></BODY></HTML>
在IE和gg浏览器下测试OK,但在Firefox下无效。

godaddy的com域名涨价了(6.95->7.49)
smarty中的unrecognized tag的解决

