JS跳轉(zhuǎn)大概有以下幾種方式:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
第一種:(跳轉(zhuǎn)到b.html)
<script language="javascript" type="text/javascript">
window.location.href="b.html";
</script>
第二種:(返回上一頁面)
<script language="javascript">
window.history.back(-1);
</script>
第三種:
<script language="javascript">
window.navigate("b.html");
</script>
第四種:
<script language="JavaScript">
self.location=’b.html’;
</script>
第五種:
<script language="javascript">
top.location=’b.html’;
</script>
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。