刷新頁(yè)面實(shí)現(xiàn)方式總結(jié)(HTML,ASP,JS)
更新時(shí)間:2008年11月13日 10:29:59 作者:
多種方法實(shí)現(xiàn)頁(yè)面的刷新代碼
定時(shí)刷新:
1,<script>setTimeout("location.href='url'",2000)</script>
說(shuō)明:url是要刷新的頁(yè)面URL地址
2000是等待時(shí)間=2秒,
2,<meta name="Refresh" content="n;url">
說(shuō)明:
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
n,是等待的時(shí)間,以秒為單位
url是要刷新的頁(yè)面URL地址
3,<%response.redirect url%>
說(shuō)明:一般用一個(gè)url參數(shù)或者表單傳值判斷是否發(fā)生某個(gè)操作,然后利用response.redirect 刷新。
4,刷新框架頁(yè)
<script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload();</script>定時(shí)刷新:
1,<script>setTimeout("location.href='url'",2000)</script>
說(shuō)明:url是要刷新的頁(yè)面URL地址
2000是等待時(shí)間=2秒,
2,<meta name="Refresh" content="n;url">
說(shuō)明:
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
n,是等待的時(shí)間,以秒為單位
url是要刷新的頁(yè)面URL地址
3,<%response.redirect url%>
說(shuō)明:一般用一個(gè)url參數(shù)或者表單傳值判斷是否發(fā)生某個(gè)操作,然后利用response.redirect 刷新。
4,刷新框架頁(yè)
<script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload();</script>
1,<script>setTimeout("location.href='url'",2000)</script>
說(shuō)明:url是要刷新的頁(yè)面URL地址
2000是等待時(shí)間=2秒,
2,<meta name="Refresh" content="n;url">
說(shuō)明:
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
n,是等待的時(shí)間,以秒為單位
url是要刷新的頁(yè)面URL地址
3,<%response.redirect url%>
說(shuō)明:一般用一個(gè)url參數(shù)或者表單傳值判斷是否發(fā)生某個(gè)操作,然后利用response.redirect 刷新。
4,刷新框架頁(yè)
<script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload();</script>定時(shí)刷新:
1,<script>setTimeout("location.href='url'",2000)</script>
說(shuō)明:url是要刷新的頁(yè)面URL地址
2000是等待時(shí)間=2秒,
2,<meta name="Refresh" content="n;url">
說(shuō)明:
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
n,是等待的時(shí)間,以秒為單位
url是要刷新的頁(yè)面URL地址
3,<%response.redirect url%>
說(shuō)明:一般用一個(gè)url參數(shù)或者表單傳值判斷是否發(fā)生某個(gè)操作,然后利用response.redirect 刷新。
4,刷新框架頁(yè)
<script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload();</script>
相關(guān)文章
JS 實(shí)現(xiàn)緩存算法的示例(FIFO/LRU)
這篇文章主要介紹了JS 實(shí)現(xiàn)緩存算法的示例(FIFO/LRU),小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2018-03-03

javascript版的in_array函數(shù)(判斷數(shù)組中是否存在特定值)
這篇文章主要介紹了javascript版的in_array函數(shù)(判斷數(shù)組中是否存在特定值),需要的朋友可以參考下
2014-05-05 
javascript實(shí)現(xiàn)掃雷簡(jiǎn)易版
這篇文章主要為大家詳細(xì)介紹了javascript實(shí)現(xiàn)掃雷簡(jiǎn)易版,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
2020-08-08 
js實(shí)現(xiàn)刷新頁(yè)面后回到記錄時(shí)滾動(dòng)條的位置【兩種方案可選】
本文主要介紹了頁(yè)面的div中有滾動(dòng)條,js實(shí)現(xiàn)刷新頁(yè)面后回到記錄時(shí)滾動(dòng)條的位置的兩種方案,需要的朋友可以看下
2016-12-12 
JavaScript使用面向?qū)ο髮?shí)現(xiàn)的拖拽功能詳解
這篇文章主要介紹了JavaScript使用面向?qū)ο髮?shí)現(xiàn)的拖拽功能,結(jié)合實(shí)例形式詳細(xì)分析了javascript基于面向?qū)ο蟮耐献Чδ軐?shí)現(xiàn)思路、原理與具體操作技巧,需要的朋友可以參考下
2019-06-06 
微信小程序?qū)崿F(xiàn)form表單本地儲(chǔ)存數(shù)據(jù)
這篇文章主要為大家詳細(xì)介紹了微信小程序?qū)崿F(xiàn)form表單本地儲(chǔ)存數(shù)據(jù),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
2019-06-06