大家都知道,为一个窗口的父页面的TextBox或input(HTML)控件赋值可以用window.opener.document.all('控件ID').value=xxxx来实现,那么对于其他的控件,如Label或Image可以这样做吗?如果可以,请教如何实现

解决方案 »

  1.   

    window.opener.document.all('labelID').innertext
    window.opener.document.all('控件ID').src
      

  2.   

    window.opener.document.all('labelID').innerHTML 
    window.opener.document.all('labelID').innerText
     window.opener.document.all('imageID').src注意大小写
      

  3.   

    还有, 要注意 document.all 兼容性的问题: 改成:
    window.opener.document.getElementById('labelID').innerHTML
    window.opener.document.getElementById('labelID').innerText
    window.opener.document.getElementById('imageID').src
      

  4.   

    一般的格式为:
    window.opener.document.all('控件id').属性   或
    window.opener.document.all('控件id').style.属性
      

  5.   

    谢谢 rickjelly2004(rick & jelly)。总是已经解决。请教一下如何结分啊?我把分全给你。呵呵。我一直没找到结分的地方。
      

  6.   

    哈哈,后来看到 meizz(梅花雪) 的回复,更是有创意。也谢谢啦。谁告诉我一下结分的方法。还有,我的QQ:172527,希望认识多多的朋友。