2
为什么HtmlElement
的GetAttribute()
方法返回mshtml.HTMLInputElementClass
而不是属性的值,当我试图获取表单的action
属性的值?为什么HtmlElement的GetAttribute()方法返回“mshtml.HTMLInputElementClass”而不是属性值?
HtmlElementCollection elements = webBrowser1.Document.Forms;
foreach (HtmlElement element in elements)
MessageBox.Show(element.GetAttribute("action") + "");
没有摄制。发布显示表单的HTML。 – 2010-09-27 16:29:41
可以工作的示例:http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_form_submit – 2010-09-27 16:30:33
http://amazines.com/member_login.cfm – luvieere 2010-09-27 16:40:11