在showModalDialog里,parent.document这些属性是不适用的,首先它是一个WEB对话框,已经不是一张网页了,所在你不能用这些属性来赋值了,你在框架页里就将title定义好吧。

解决方案 »

  1.   

    不会的
    parent.document.title="<%=c_name%>"+parent.document.title
    是对得
      

  2.   

    to meizz(梅花雨) :这个属性可以读出来,就是写不进去!气死我了!在定义的时候那个showDialog.asp是一个公用的文件,内容不能改变的。而且你说要传一个title进去的话好像也不行啊。 因为我不能轻易就拿到这个title。而要在数据库里读出才可以写进去。问题解决是很简单的。只是读多了一次数据库而已。
    to hazeline(砸死我) :对于一般网页来说是对的。在Modaldialog中也可以运行,但是没有效果而已。
    to qiushuiwuhen(秋水无恨) :dialogArguments这个属性是showmodaldialog传进来的第二个参数。改变它也没用啊!即使传个window对象进去也只是改变刚才打开他的那个窗口的title啊。而不是改变自己的title
      

  3.   

    改变对话框的标题
        ******?in ShowModalDialog's html file:...
    <title>Whatever</title>
    ...
    If you want to change the original window' title:in ShowModalDialog's html file:...
    <script>
      window.returnValue="Whatever";
      self.close();
    </script>
    ...in the main file:...
    var title = window.showModalDialog("");
    document.title = title;
    ...