一个页面,弹出另一个页面。
父页面,怎么获取子页面的值。子页面,又怎么读取父页面的值。高手帮忙 了。。

解决方案 »

  1.   

    window.open
    还是
    window.showModalDialog 
    方法?
    前者使用opener 对象,后者采用
    showModalDialog("url",window)
    进行传递窗口对象
      

  2.   


    vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
    window.showModalDialog("showModalDialog_target.htm", "",
    sFeatures
      

  3.   

    父页面var sonWin=window.open('aaa.html','bbbb');
    alert(sonWin.document.body.innerHTML);子页面var parentWin=window.opener;
    alert(parentWin.document.body.innerHTML);
      

  4.   

    例子+教程
    http://blog.csdn.net/net_lover/archive/2002/09/24/6910.aspx