试了,不行,alert(document.all["doc_html"].text);显示undefined

解决方案 »

  1.   

    那如何在user_editor.htm引用editor.htm中名为Compostion的iframe中的控件,比如
    <input type=text name="test_text">?
      

  2.   

    thx先
    是可以通过document.all.doc_html.value来得到具体的输入内容
    现在想增加一个按钮,点击后iframe中就显示输入的纯文本内容,就是不带有html标记的.
    就像yahoo写邮件时,开始时选择颜色和图片,输入一些内容,比如转换为html时是<P><STRONG>1<FONT size=3>2</FONT></STRONG></P>,然后选择纯文本就显示12了
    http://www.asian-tech.net/myeditor/user_edit.htm(弹出输入的内容)
    多谢各位