网页中代码
<textarea style="width:100%;height:235px;" name=doc_text id=doc_text vote=hide media= nothost >
</textarea>
如何给textarea 赋值
尝试代码,均不见效
ole_2.object.navigate("http://www.xici.net/d130238636.htm")
//ole_2.object.Document.all.doc_text.innerHTML= "1234"
//ole_2.object.Document.getElementById("doc_text").innerHTML= "1234"
//ole_2.object.Document.getElementById("doc_text").innerText= ole_2.object.document.getElementById("doc_text").innerText+ "<P>22344</P>"
//ole_2.object.Document.GetElementsByName("doc_text").value="123"
希望xys_777 等等高手帮忙查看一下
谢谢
------解决方案--------------------
ole_2.object.Document.all.doc_text.value = "1234"
------解决方案--------------------
- SQL code
string ls_textls_text = '测试一下'try ole_1.object.document.parentWindow.execScript("tinyMCE.execInstanceCommand('doc_text','mceInsertContent',false,'"+ls_text+"');",'JavaScript')Catch (RuntimeError r) returnend try