刷新页面的问题,急死我了!(一定付点!) <input type=button onclick="top.bottomframe.location.reload()" value="refresh"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1:window.parent.frames["framename"].location.reload(); 2:写个函数用settimeout或者在meta里…… 不好意思,没有记怎么写 不好意思,没看到第二个问题<meta http-equiv="refresh" content="60;url=/index.asp">第一个参数是以秒为单,第二个参数是网页的url 第一个问题:先给那两个框架命名假设上面的top,下面的为main<input type="button" value="刷新下面网页" onclick="parent.main.location='*.asp'">//*.asp为下面框架调用的网页第二个问题:只要在想让它自动刷新的那个网页的文件头<head>和</head>之间加上:<meta http-equiv="refresh" content="120;url=*.asp">OK,搞定!^_^ 1:先给那两个框架命名假设上面的top,下面的为bottom<input type="button" value="刷新网页" onclick="window.parent.frames('bottom').location='*.asp'">2:在网页的文件头<head>和</head>之间加上:<meta http-equiv="refresh" content="120"> index.htm<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><input type=button onclick="parent.lansaframe.location.reload()" value="刷新下面的页面"><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><iframe name="lansaframe" src="frame-2.htm" width="100%" height="60%"></iframe></body></html>----------------------------------------------------frame-2.htm<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="refresh" content="120"></head><body bgcolor="#006666" text="#CCCCCC">gddg </body></html> 谢谢上面的朋友们,你们帮了我大忙,但是这么多人回给我,我不知道该把分给谁,我知道你们都不需要什么分数,但为了感激你们的热情帮助我还是要把分给出去的,我看了一下,这里面fason(阿信) 大哥的回答是最适合我的了,因为我不想给刷新的文件指定文件名,这样代码在每个页中才会通用!谢谢各位了! vbscript不出alert弹窗,急求答案!! JS或者JQuery,如何操作后生成的动态元素?比如添加样式 JS 最小化窗口问题 JavaScript级联右键菜单 在线等 body的onload事件可以在js文件中调用吗?在线等 获取DIV高问题.高手进.速度揭贴! 怎样在页面载入时刷新一次页面 问个用js判断空值问题不知道少什么 怎样在客户端获取远程JS的内容? 关于设置遮罩层宽度问题 子iframe可以调用父网页的全局变量吗? IE5.0下的FILE输入框没有onchange事件,怎么办
2:写个函数用settimeout或者在meta里……
不好意思,没有记怎么写
<meta http-equiv="refresh" content="60;url=/index.asp">
第一个参数是以秒为单,第二个参数是网页的url
先给那两个框架命名假设上面的top,下面的为main
<input type="button" value="刷新下面网页" onclick="parent.main.location='*.asp'">
//*.asp为下面框架调用的网页
第二个问题:
只要在想让它自动刷新的那个网页的文件头<head>和</head>之间加上:
<meta http-equiv="refresh" content="120;url=*.asp">
OK,搞定!^_^
先给那两个框架命名假设上面的top,下面的为bottom
<input type="button" value="刷新网页" onclick="window.parent.frames('bottom').location='*.asp'">
2:
在网页的文件头<head>和</head>之间加上:
<meta http-equiv="refresh" content="120">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body><input type=button onclick="parent.lansaframe.location.reload()" value="刷新下面的页面"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<iframe name="lansaframe" src="frame-2.htm" width="100%" height="60%"></iframe>
</body>
</html>
----------------------------------------------------
frame-2.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="120">
</head><body bgcolor="#006666" text="#CCCCCC">
gddg
</body>
</html>