<input type=button onclick="top.bottomframe.location.reload()" value="refresh">

解决方案 »

  1.   

    1:window.parent.frames["framename"].location.reload();
     2:写个函数用settimeout或者在meta里……
     不好意思,没有记怎么写
      

  2.   

    不好意思,没看到第二个问题
    <meta http-equiv="refresh" content="60;url=/index.asp">
    第一个参数是以秒为单,第二个参数是网页的url
      

  3.   

    第一个问题:
    先给那两个框架命名假设上面的top,下面的为main
    <input type="button" value="刷新下面网页" onclick="parent.main.location='*.asp'">
    //*.asp为下面框架调用的网页
    第二个问题:
    只要在想让它自动刷新的那个网页的文件头<head>和</head>之间加上:
    <meta http-equiv="refresh" content="120;url=*.asp">
    OK,搞定!^_^
      

  4.   

    1:
    先给那两个框架命名假设上面的top,下面的为bottom
    <input type="button" value="刷新网页" onclick="window.parent.frames('bottom').location='*.asp'">
    2:
    在网页的文件头<head>和</head>之间加上:
    <meta http-equiv="refresh" content="120">
      

  5.   

    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>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</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>
      

  6.   

    谢谢上面的朋友们,你们帮了我大忙,但是这么多人回给我,我不知道该把分给谁,我知道你们都不需要什么分数,但为了感激你们的热情帮助我还是要把分给出去的,我看了一下,这里面fason(阿信) 大哥的回答是最适合我的了,因为我不想给刷新的文件指定文件名,这样代码在每个页中才会通用!谢谢各位了!