表单提交到下一个页面后,再点击IE上的后退,如何能让表单内容再次显示出来?(以及当前页禁止IE返回按钮js)
Posted on 2009-07-08 22:56 且行且思 阅读(1968) 评论(0) 编辑 收藏 举报<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
<script language="javascript">
JavaScript:window.history.forward(1);
//-->
</script>
</HEAD>
<BODY>
<form id="sd" runat=server>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=Text1>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</form>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
<script language="javascript">
JavaScript:window.history.forward(1);
//-->
</script>
</HEAD>
<BODY>
<form id="sd" runat=server>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=Text1>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</form>
</BODY>
</HTML>
其它需要显示的表单,仅需加上该样式名称即可。
当前页禁止IE返回按钮js :参考该页js部分。