Home >Web Front-end >HTML Tutorial >Automatic page refresh problem in frameset, please help_html/css_WEB-ITnose

Automatic page refresh problem in frameset, please help_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:11:03807browse

In index.jsp

<frameset>	<frame></frame>	<frameset>		<frame></frame>		<frame>A</frame>	</frameset></frameset>



Write
<meta http-equiv="refresh" content="3;URL=index.jsp">


in A. This will only display refresh in A. I want Refresh the entire web page. Any advice?


Reply to discussion (solution)

Should it be written in index.jsp or A?

<script type="text/javascript">window.onload = function() {	setTimeout('self.parent.location.reload()', 3000);}</script>

You can also use window.top:

<script type="text/javascript">window.onload = function() {    setTimeout('window.top.location = "index.jsp";', 3000);}</script>

Use script!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn