【发布时间】:2009-12-26 15:13:54
【问题描述】:
例如: 1) 在 webBrowser1 页面中加载 index.html。 2) 该页面代码如下:
...
<a id="activity_text" href="#" onclick="activity_editor.show();return false;">now status</a>
...
3) 我可以在程序中改变“现在状态”吗?
我试过了:
HtmlElement collH1 = document.GetElementById("activity_text");
collH1.InnerText = "new status";
但是这种方式只适用于控件webBrowser1。 如果那就来看看IE/Opera/FF 什么都没有...
【问题讨论】:
-
你想达到什么目的?
-
更改值“现在状态”,使其在服务器上有所变化
-
请澄清以下声明:
If then to come to look through IE/Opera/FF that has varied of nothing...。您是否试图让文本在服务器上更改,而不仅仅是在您的网络浏览器控件中?
标签: c# javascript