js返回上一頁(yè)方法示例
js返回上一頁(yè)
1. history.go(-1), 返回兩個(gè)頁(yè)面: history.go(-2);
2. history.back().
3. window.history.forward()返回下一頁(yè)
4. window.history.go(返回第幾頁(yè),也可以使用訪問(wèn)過(guò)的URL)
例:
<a href="javas
response.Write("<script language=javas
response.Write("if(!confirm('完成任務(wù)?')){history.back();}")
response.Write("</script>")
response.Write("<script language=javas
<a href="javas
頁(yè)面跳轉(zhuǎn):on
P.S.
小技巧(JS引用JS):
<script type=text/javas
<!--
if (typeof SWFObject == "undefined") {
document.write('<scr' + 'ipt type="text/javas
//-->
</script>
關(guān)鍵詞:js
閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!
- 0
- 3
- 0
- 0
- 0
- 0