2012-11-04 22 views
0

這是我想填補框:可以不填箱與網頁瀏覽器

<textarea name="message" id="vB_Editor_001_textarea" rows="10" cols="60" style="display: block; width: 380px; height: 250px; " tabindex="1" dir="ltr"></textarea> 

這是在一個論壇PM方塊,這是身體要具體,其他所有的字段都填寫能夠:

wb1.Document.GetElementById("recipients").SetAttribute("value", "HAHA"); 
wb1.Document.GetElementById("title").SetAttribute("value", "HAHA"); 

但我找不到填補這個問題的方法。

論壇是vBulletin。

+0

請看看這裏:http://stackoverflow.com/questions/580052/set-value-of-a-textarea-inside-a-webbrowser-control-c-net這裏的http:/ /stackoverflow.com/questions/1642447/how-to-change-the-content-of-a-textarea-with-javascript – jao

回答

1

它看起來像盒子獲取自動生成的ID。嘗試使用您從中看到的ID(vB_Editor_001_textarea)訪問它,否則,請嘗試通過名稱找到它,而不是通過ID找到它?

document.getElementByName()