js跳轉(zhuǎn)頁(yè)面方法實(shí)現(xiàn)匯總
更新時(shí)間:2014年02月11日 10:36:35 作者:
js跳轉(zhuǎn)頁(yè)面的方法有很多,本文搜集整理了一些,個(gè)人感覺(jué)還不錯(cuò),希望對(duì)大家有所幫助
復(fù)制代碼 代碼如下:
<span id="tiao">3</span><a href="javascript:countDown"></a>布丁足跡;秒后自動(dòng)跳轉(zhuǎn)……<meta http-equiv=refresh content=3;url='/search/billsearch.jsp'</ul>
<!--腳本開(kāi)始-->
<script language="javascript" type="">
function countDown(secs){
tiao.innerText=secs;
if(--secs>0)
setTimeout("countDown("+secs+")",1000);
}
countDown(3);
</script>
<!--腳本結(jié)束-->
按鈕式:
<INPUT name="pclog" type="button" value="GO" onClick="location.>
鏈接式:
<a href="javascript:history.go(-1)">返回上一步</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
直接跳轉(zhuǎn)式:
<script>window.location.;</script>
開(kāi)新窗口:
<a href="javascript:" onClick="window.open('http://www.ddhbb.com/blog/guestbook.asp','','height=500,width=611,scrollbars=yes,status=yes')">布丁足跡</a>
JS跳轉(zhuǎn)頁(yè)面參考代碼
第一種:
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl="+window.location.href;
</script>
第二種:
<script language="javascript">
alert("返回");
window.history.back(-1);
</script>
第三種:
<script language="javascript">
window.navigate("top.jsp");
</script>
第四種:
<script language="JavaScript">
self.location='top.htm';
</script>
第五種:
<script language="javascript">
alert("非法訪問(wèn)!");
top.location='xx.jsp';
</script>
=====j(luò)avascript中彈出選擇框跳轉(zhuǎn)到其他頁(yè)面=====
<script language="javascript">
<!--
function logout()...{
if (confirm("你確定要注銷身份嗎?是-選擇確定,否-選擇取消"))...{
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
=====j(luò)avascript中彈出提示框跳轉(zhuǎn)到其他頁(yè)面=====
<script language="javascript">
<!--
function logout()...{
alert("你確定要注銷身份嗎?");
window.location.href="logout.asp?act=logout"
}
-->
</script>
[/code]
您可能感興趣的文章:
- js頁(yè)面跳轉(zhuǎn)常用的幾種方式
- jsp下頁(yè)面跳轉(zhuǎn)的幾種方法小結(jié)
- js跳轉(zhuǎn)頁(yè)面方法總結(jié)
- js 控制頁(yè)面跳轉(zhuǎn)的5種方法
- js實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)的幾種方法小結(jié)
- JavaScript實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)的八種方式
- javascript 頁(yè)面跳轉(zhuǎn)方法集合
- js實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)的五種方法推薦
- JavaScript實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)的多種方式及最佳實(shí)踐
相關(guān)文章
如何用RxJS實(shí)現(xiàn)Redux Form
這篇文章主要介紹了如何用RxJS實(shí)現(xiàn)Redux Form,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2018-12-12
解析element-ui中upload組件傳遞文件及其他參數(shù)的問(wèn)題
這篇文章主要介紹了element-ui中upload組件如何傳遞文件及其他參數(shù),分析一下我使用element-ui遇到的問(wèn)題以及解決方法,需要的朋友可以參考下2021-11-11
購(gòu)物車選中得到價(jià)格實(shí)現(xiàn)示例
本文為大家介紹下購(gòu)物車如何實(shí)現(xiàn)選中得到價(jià)格,下面有個(gè)不錯(cuò)的示例,大家可以參考下2014-01-01
深入理解js A*尋路算法原理與具體實(shí)現(xiàn)過(guò)程
這篇文章主要介紹了js A*尋路算法原理與具體實(shí)現(xiàn)過(guò)程,結(jié)合實(shí)例形式詳細(xì)分析了A*尋路算法的具體概念、原理、實(shí)現(xiàn)方法與相關(guān)操作技巧,需要的朋友可以參考下2018-12-12
比較精簡(jiǎn)的Javascript拖動(dòng)效果函數(shù)代碼
比較精簡(jiǎn)的Javascript拖動(dòng)效果函數(shù)代碼...2007-07-07

