window.location.href="你原来的页面.php"

解决方案 »

  1.   

    window.opener.document.getElementById('xxx').value='aaa'
      

  2.   

    通过window.open打开新页面,两个页面之前便有了一种父子关系。子页通过opener可以访问父页(控件及写在父页的js函数),父页同样通过sub可以访问子页。如在父页有个js函数sayhello(),在子页中只需要opener.sayhello ()便可以调用了。
      

  3.   

    偶也有遇到过这样的问题。但还没求到最佳解决方案。二楼的方法可以吗?偶现在是用session记录返回值。
      

  4.   

    function view(name){
    //返回前一頁表單
    window.opener.form1.size1.value=name;
    window.close();
    }<a href="javascript:view('返回參數')">選擇</a>