2013-04-01 275 views
0

我需要自動刷新HTML頁面。自動刷新HTML頁面

如果我把我的頭標籤下面,似乎這樣的伎倆:

<head> 
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> 
    <meta http-equiv="Pragma" content="no-cache"> 
    <meta http-equiv="Expires" content="0"> 
    </head> 

如果其他人有過的經歷在它不工作,我想知道。

感謝

+0

閱讀這個問題,答案:http://stackoverflow.com/questions/8711888/auto-refresh-code-in-html-using-meta-tags – DwB

回答

0

有一些已知的問題,如果這不會與IE瀏覽器的一些版本。在HTML文檔的末尾放置第二個包含適當元標記的頭部分是一種破解。

+0

感謝千電子伏。對於已知問題,如果用戶確實刷新了頁面,應該刷新頁面,對嗎? –

2
Try this tag. 

    <head> 
    <meta http-equiv="refresh" content="900"> 
    </head>