javascript 返回,自動刷新

1,返回上N頁java

    Javascript 返回上一頁history.go(-1), 返回兩個頁面: history.go(-n);ui

2,返回下一頁url

    window.history.forward()spa

3,頁面自動刷新ip

<meta http-equiv="refresh" content="20">  //每隔20秒刷新一次get

4,頁面自動跳轉:把以下代碼加入<head>區域中io

<meta http-equiv="refresh" content="20;url=http://www.javaeye.com">  //每隔20秒跳轉到http://www.javaeye.comfunction

5,頁面自動刷新JS版meta

<script language="JavaScript">im

function myrefresh()

{

       window.location.reload();

}

setTimeout('myrefresh()',1000); //指定1秒刷新一次

</script> 

相關文章
相關標籤/搜索