你可以把window作为参数传到showModalDialog,这样的话,任何原window有的数据你都可以取出来。

解决方案 »

  1.   

    var strReturn=window.showModalDialog("hachu7_p.asp",strArgu,"dialogHeight:190px;dialogWidth:400px;center:yes;help:no;resizable:no;status:no;scroll:no");
    我的代码是这样写的,用strArgu传值到‘hachu7_p.asp’页面。hachu7_p.asp用GetValue 接收传过来的值。
    <script language="JavaScript">
    <!--
    GetValue = dialogArguments;
    -->
    </script>
    strArgu传的字符太多就会出错,有人能具体说一下解决方法吗。
      

  2.   

    parent.html
    ----------
    window.loogString = "looooooooooooooooooooooooooooooooooooooooooooooooooooog...."
    window.showModalDialog("child.htm", window)
    child
    -------------
    alert(window.dialogArgument.loogString)
      

  3.   

    window.showModalDialog("child.htm", window);子窗口
    var wincopy = window.dialogArgument;
    // wincopy 可以象父窗口中的window做一样的访问,包括js函数,js变量,整个document
    alert(wincopy.document.forms["someFormName"].someTextName.value);
      

  4.   

    哈,我原來也遇到了這種情況,我想把一整張報表當用戶點打印時,重新生成,直接抓他的innerHTML,結果傳過去的字節太多時,沒法傳遞,我也在網上找過,好像是可以在IIS裡設定它的傳輸量,可我沒找著,後來我分析了一下我的報表HTML的大小,估計都不會超過3倍傳輸量,於是我在源端把innerHTML取得的值分成三段返回,到了新的網頁裡再組合,就解決了。這和程式沒有關系的,你先試試看!