我想在DELPHI下用WEBBROWSER對以下網頁中的TEXTAREA進行賦值
<tr class="TableControl">
<td class="TableData" colspan="2">
<textarea name="CONTENT" rows="8" cols="60"></textarea>
<script type="text/javascript">//<![CDATA[
window.CKEDITOR_BASEPATH='/module/editor/';
//]]></script>
<script type="text/javascript">//<![CDATA[
window.HTML_MODEL_TYPE='03';
//]]></script>
<script type="text/javascript" src="https://bbs.csdn.net/module/editor/ckeditor.js.gz?t=B5GJ5GG"></script>
<script type="text/javascript">//<![CDATA[
CKEDITOR.replace('CONTENT', {"model_type":"03","width":"100%","height":"320","toolbar":"Default","language":"zh-CN"});
//]]></script>
</td>
</tr>
搜索了好多文章均不行,請教各位高手不吝指教,多謝!
uj5u.com熱心網友回復:
看起來高手都歸隱了,自己頂一下uj5u.com熱心網友回復:
用IHTMLdocument介面uj5u.com熱心網友回復:
IHTMLDocument3.getElementsByNameIHTMLDocument3.getElementsByTagName
遍歷,找到你那個Textarea,再轉換為IHTMLTextAreaElement
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/113174.html
標籤:網絡通信/分布式開發
