就是往所谓的richEditor里负值。

解决方案 »

  1.   

    document.frames("yourifnamename").document.all.yourricheditorname.value= yourvar;
      

  2.   

    关键在于对iframe的引用在这种情况下只能用frames集合,而不能用document.all(id)的形式。
      

  3.   

    比如:<html>
    <body><iframe id='richEditor'></iframe>
    <script>
    richEditor.Value='xxxxxxx';
    //richEditor.innerHTML='xxxxxxx';
    </script></body>
    </html>我就想在页面的iframe框里显示xxxxxxx,如何做?
      

  4.   

    richEditor.document.body.innerHTML='xxxxxxx';也不行。document.frames("richEditor").document.body.innerHTML= 'xxxxxxx';也不行。
      

  5.   

    是不是因为我的iframe是动态document.write("<iframe id='richEditor'></iframe>")上去的原因?