Label2.value换成
Label2.innerHTML
Label2.innerText

解决方案 »

  1.   

    谢谢,换成innerText就可以了,其它的都不行!
    这是为什么呢??????????
    如果是其它控件,也要换吗?
      

  2.   

    试验一下下面的代码。如不成功请联系我。父窗口:
    var a=window.showModalDialog('client_query.aspx',window,'dialogheight:300px;dialogwidth:500px;help:0;');alert(a);document.all.Label2.value=a;子窗口(被弹出的窗口):
     
    window.returnValue = "aaa";
    window.close();
      

  3.   

    Label控件生成的是span ,没有value属性,你最好先看看html的基本知识