HTML按钮元素
<input type="submit" value="确定" class="dialogbtn"
C# 执行代码
1 HtmlDocument doc = webBrowser1.Document; 2 HtmlElementCollection coll = doc.GetElementsByTagName("input"); 3 foreach (HtmlElement item in coll) 4 { 5 if (item.GetAttribute("value") == "确定") 6 { 7 item.InvokeMember("click"); 8 } 9 }