(1) parent.htm 内容如下:
<html><head>
    <title>test</title>
    <meta name="designer" content="">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head><frameset id="sidebar_content" cols="225, *" frameborder="1" border="6" framespacing="5" bordercolor="#a1c7f9">
    <frame name="html1" src="1.html" frameborder="1" scrolling="no">
    <frame name="html2" src="2.html" frameborder="0">
</frameset>
</html>(2) 1.htm 内容如下:
<a  href="parent.html1.location='1.htm'">重定向2.html页面</a>(3) 2.htm 内容如下:
<a href="parent.html2.location='2.htm'">重定向1.html页面</a>我是想实现这样的功能:在1.html页面中让2.html页面得到刷新,在2.html页面中让1.html页面得到刷新,但运行后没能实现。
请高手帮忙,非常感谢!

解决方案 »

  1.   

    (2) 1.htm 内容如下: 
    <a  href="javascript:parent.html1.location='1.htm'">重定向2.html页面 </a> (3) 2.htm 内容如下: 
    <a href="javascript:parent.html2.location='2.htm'">重定向1.html页面 </a>
      

  2.   

    哦,写反了,应该是这样的:
    ) parent.htm 内容如下:
    <html><head>
        <title>test</title>
        <meta name="designer" content="">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head><frameset id="sidebar_content" cols="225, *" frameborder="1" border="6" framespacing="5" bordercolor="#a1c7f9">
        <frame name="html1" src="1.html" frameborder="1" scrolling="no">
        <frame name="html2" src="2.html" frameborder="0">
    </frameset>
    </html>(2) 1.htm 内容如下:
    <a  href="parent.html2.location='2.htm'">让2.html页面刷新</a>(3) 2.htm 内容如下:
    <a href="parent.html1.location='1.htm'">让1.html页面刷新</a>我是想实现这样的功能:在1.html页面中让2.html页面得到刷新,在2.html页面中让1.html页面得到刷新,但运行后没能实现。
    请高手帮忙,非常感谢!
      

  3.   

    加上前缀javascript:(2) 1.htm 内容如下: 
    <a  href="javascript:parent.html2.location='2.htm'">让2.html页面刷新 </a> (3) 2.htm 内容如下: 
    <a href="javascript:parent.html1.location='1.htm'">让1.html页面刷新 </a>
      

  4.   

        谢谢MuBeiBei,果然成功,但是还有一个奇怪的现象:页面刷新只能操作一次,第二次就出错了(网页打不开),我表达得不太清楚,还麻烦你试运行一下就知道了,能不能一起帮我解决掉这个问题,非常感谢!
      

  5.   

    parent.htm 内容如下: 
    <html> <head> 
        <title>test </title> 
        <meta name="designer" content=""> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    </head> <frameset id="sidebar_content" cols="225, *" frameborder="1" border="6" framespacing="5" bordercolor="#a1c7f9"> 
        <frame name="html1" src="1.htm" frameborder="1" scrolling="no"> 
        <frame name="html2" src="2.htm" frameborder="0"> 
    </frameset> 
    </html>
      

  6.   

    <frame name="html1" src="1.htm" frameborder="1" scrolling="no"> 
        <frame name="html2" src="2.htm" frameborder="0">这两个frame的src把1.html改成1.htm 2.html改成2.htm  这样试试~·
      

  7.   

    谢谢MuBeiBei,成功啦,另外我加了一句void(0),这样在点击链接时显示的内容就依然保持了,
    1.htm 内容如下: 
    <a  href="javascript:parent.html2.location='2.htm';void(0)">让2.html页面刷新 </a> 2.htm 内容如下: 
    <a href="javascript:parent.html1.location='1.htm';void(0)">让1.html页面刷新 </a>