最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Refresh frames in html page - Stack Overflow

programmeradmin3浏览0评论

A very simple question. I have a html page which is divided into three frames, which actually show three html pages like this:

<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%" border="5">
<FRAMESET rows="100, 200" border="5">
  <FRAME src="abc.html">
  <FRAME src="xyz.html">
</FRAMESET>
<FRAME src="ijk.html">
<NOFRAMES>
  <P>This frameset document contains:
  <UL>
     <li>some text</li>
  </UL>
</NOFRAMES>
</FRAMESET>
</HTML>

What I need is a powerful refresh button (can be backed by JS/PHP/etc.) on each page, so that pages can be refreshed on button click and independently, and refreshing one page does not impact other. Is this a possibility? A sample code (that i want) for one of the pages in the frames (say abc.html) can be like:

<html>
<body>
<img src='123.jpg'><br />
<input type="button" Onclick="refresh">
</body>
</html>

Thanks.

A very simple question. I have a html page which is divided into three frames, which actually show three html pages like this:

<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%" border="5">
<FRAMESET rows="100, 200" border="5">
  <FRAME src="abc.html">
  <FRAME src="xyz.html">
</FRAMESET>
<FRAME src="ijk.html">
<NOFRAMES>
  <P>This frameset document contains:
  <UL>
     <li>some text</li>
  </UL>
</NOFRAMES>
</FRAMESET>
</HTML>

What I need is a powerful refresh button (can be backed by JS/PHP/etc.) on each page, so that pages can be refreshed on button click and independently, and refreshing one page does not impact other. Is this a possibility? A sample code (that i want) for one of the pages in the frames (say abc.html) can be like:

<html>
<body>
<img src='123.jpg'><br />
<input type="button" Onclick="refresh">
</body>
</html>

Thanks.

Share Improve this question asked Jun 16, 2012 at 6:41 saifuddin778saifuddin778 7,30816 gold badges53 silver badges70 bronze badges 1
  • What have you tried? – sczizzo Commented Jun 16, 2012 at 6:57
Add a ment  | 

2 Answers 2

Reset to default 2

Just:

document.frames[i].location.reload();

in your function refresh,write

window.location.reload()
发布评论

评论列表(0)

  1. 暂无评论