js返回上一页方法示例_汇总
js返回上一页
1. history.go(-1), 返回两个页面: history.go(-2);
2. history.back().
3. window.history.forward()返回下一页
4. window.history.go(返回第几页,也可以使用访问过的URL)
例:
<a href="javas
response.Write("<script language=javas
response.Write("if(!confirm('完成任务?')){history.back();}")
response.Write("</script>")
response.Write("<script language=javas
<a href="javas
页面跳转:on
P.S.
小技巧(JS引用JS):
<script type=text/javas
<!--
if (typeof SWFObject == "undefined") {
document.write('<scr' + 'ipt type="text/javas
//-->
</script>