Javascript 返回上一页:

1. history.go(-1),

返回两个页面: history.go(-2);

2. history.back().

3. window.history.forward()返回下一页

4. window.history.go(返回第几页,也可以使用访问过的URL)

例:

href="javascript:history.go(-1);">向上一页

response.Write("

response.Write("if(!confirm('完成任务?')){history.back();}")

response.Write("")

response.Write("")

href="javascript:history.go(-1);">向上一页

页面跳转:οnclick="window.location.href='index.aspx'"

P.S.

小技巧(JS引用JS):

=======================================

更多推荐

java页面后退代码,JS后退一页, JS返回上一页代码, JS返回下一页,JS返回第几页,JS页面跳转...