htm可以这样传递参数吗???
showModalDialog可以传递参数的
showModalDialog(“page”,"param")
请看一下showModalDialog用法

解决方案 »

  1.   

    gu_xin2002(不是过客) :如果是开一个新窗口是可以这样传参数的,但是如果是对话框,不知怎的就不行了!
      

  2.   

    可以用showModalDialog(sURL [, vArguments [, sFeatures]])解决问题。
    但是我不知道为什么不可以用Calendar.htm?theOldDate=2002/3/6的方式解决。
      

  3.   

    open和showModalDialog传递参数不一样
      

  4.   

    var a = "2002/3/6"
    showModalDialog("Calendar.htm",a);
      

  5.   

    在Calendar.htm里

    <script>
    alert(window.dialogArguments)
    </script>取得
      

  6.   

    net_lover(孟子E章) :
    但是我不知道为什么不可以用Calendar.htm?theOldDate=2002/3/6的方式解决。
      

  7.   

    严格地说:showModalDialog("Calendar.htm",a);
    只是一个对话框,不具有窗口的一些属性