頁面刷新及返回的幾種方法

window.parent.frames[1].location.reload(); 

1    history.go(0)     

  
2    location.reload()     
  
3    location=location     
  
4    location.assign(location)    
  
 5    document.execCommand('Refresh')    
  
 6    window.navigate(location)     
  
7    location.replace(location)     
  

8    document.URL=location.href      

9.widow.back()

自動刷新:

<meta http-equiv="refresh" content="20">

自動跳轉

<meta http-equiv="refresh" content="20;url=http://www.wiztrend.com">

頁面自動刷新js版 <script language="JavaS

cript"> function myrefresh() {        window.location.reload(); } setTimeout('myrefresh()',1000); //指定1秒刷新一次 </script>   


iframe:

window.parent.history.go(0) ;    



發佈了39 篇原創文章 · 獲贊 1 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章