可以在返回钮上加入如下脚本的:<button onclick="javascript:location='1.htm';">只有一个按钮是不能有什么反应的.

解决方案 »

  1.   

    1.htm的URL可能很长而且是动态字符串组合的。
    请问还有其它简便的方法吗?
      

  2.   

    先由ifarme的TOP属性,将数据返回到2.html,再由2.html的opener属性返回到1.html即可!在2.html中需要一个返回按钮。iframe中,可绑定点击事件,将数据返回到2.html。
      

  3.   

    在iframe中如何实现绑定点击事件???
      

  4.   

    <button onclick="top.location=document.referrer">Back</button>
      

  5.   

    <a onclick="dosomething('returnStr');">点击这儿做某事 </a><script language="javascript">
    function dosomething(tmpstr){
       window.top.document.form1.text1.value=tmpstr;//点击时将数据返回到TOP窗口的FORM1表单的文本框TEXT1。
    }
    </script>在2.html中:<input type=button value="返回" onclick="dosomething();">
    <form name=form1 id=form1>
    <input type=text name=text1 value="">
    </form>
    <script language=javascript>
    function dosomething{
        window.opener.document.mainform.text1.value=form1.text1.value; //将2.html的值返回到1.html ,并关闭2.html
        ……
        self.close();
    }
    </script>1.html
    <form name=mainform>
        <input type=text name=text1>
        ……
    </form>
      

  6.   

    各位看清楚我的问题哟!我的问题是iframe中已经生成了记录列表,在iframe中浏览分页列表后,地址已经改变,然后在父页面即2.html中单击“返回”按钮。问题不是你们想象得那么简单!