iframe中使用
parent.returnValue=''

top.returnValue=''

解决方案 »

  1.   

    最好用top.returnValue
    如果嵌套多层的话
      

  2.   

    可是我在一个页面中用了两个IFRAME,如果解决呢?(都要返回值)
      

  3.   

    还有如果写啊?在IFRAME中,还是在IFRAME包含的JSP文件中?
      

  4.   

    写在哪儿啊?是<IFRAME top.returnValue+="asdasd" src=....>吗?
      

  5.   

    iframe中的脚本
    <input id=button1 type=button value=test>
    <script>
    function button1.onclick(){
    top.returnValue+=",bbb";
    top.close();
    }
    </script>