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
Release: 2016-06-24 12:11:03
Original
811 people have browsed it

In index.jsp

<frameset>	<frame></frame>	<frameset>		<frame></frame>		<frame>A</frame>	</frameset></frameset>
Copy after login



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


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>
Copy after login

You can also use window.top:

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

Use script!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template