//
using mshtml ;
private void button1_Click( object sender , EventArgs e)
{
foreach ( HtmlElement vHtmlElement in webBrowser1 . Document . All)
{
if (vHtmlElement . TagName == "A" )
{
IHTMLElement vParent = vHtmlElement . Parent . DomElement as IHTMLElement ;
if (vParent . className == "logout" )
{
IHTMLElement vIHTMLElement = vHtmlElement . DomElement as IHTMLElement ;
vIHTMLElement . click();
break ;
}
}
}
}