<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>
<INPUT class=saveHistory type=text id=oPersistInput>
<input type=button onclick='javascript:location.href="http://home.nuc.edu.cn/~arcow"' value='点击进入,再按后退键试试?'>
</BODY>
</HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>
<INPUT class=saveHistory type=text id=oPersistInput>
<input type=button onclick='javascript:location.href="http://home.nuc.edu.cn/~arcow"' value='点击进入,再按后退键试试?'>
</BODY>
</HTML>
博客展示了一段代码,运用HTML和JavaScript实现保存历史功能。通过定义CSS类'saveHistory',使用behavior属性关联保存历史行为,还设置了输入框和按钮,点击按钮可跳转页面,按后退键有特定效果。
3997

被折叠的 条评论
为什么被折叠?



