showModalDialog的第二个参数就是传递的量.

解决方案 »

  1.   

    <a onclick=window.showModalDialog("dialog.asp?name1=美女&name2=美女2",window,"dialogwidth:360px;dialogheight:265px;status:no") style="cursor:hand">点击</a>
      

  2.   

    在 dialog.asp 里可以
    <script>
    if (window.dialogArguments != null)
    alert(window.dialogArguments);
    </script>
    可以得到父页传过来的window变量值(这是JS的方式)如果要传给ASP的话那你就加在dialog.asp?name=后面吧
    showModalDialog("dialog.asp?name="+aa,window,"")
      

  3.   

    var mm = new Array("111","222")<a onclick=window.showModalDialog("dialog.asp",mm ,"dialogwidth:360px;dialogheight:265px;status:no") style="cursor:hand">点击</a>那边
    var a = window.dialogArguments
    for(i=0;i<a.length;i++) alert(a[i])