title: action href link in wpf webbrowser control via code
body: <p>i use the wpf webbrowser control to show manual generated html code via WebBrowser.NavigateToString() method. In this html code there are many manual links like the following example:</p>
  
  <pre><code>&lt;a href="#marker_1"&gt;Go to Mark 1&lt;/a&gt; 
  </code></pre>
  
  <p>When i click on this link in the html document thr browser jump to it. It works correctly. What i want is to jump to the marker via c# code. I know that the WebBrowser.Document Property is a IHtmlDocument from Microsoft.mshtml.dll. I cast it an the enumarte through all IHtmlAncorElements. The i find the Ancor via name and cast it back to IHtmlElement. So i have the IHtmlElement object but i dont no how can i cation the link like also in this  mock-code:</p>
  
  <pre><code>var ancorElement = ((IHtmlDocument)WebBrowser.Document).all.Cast&lt;IHtmlElement&gt;().Where(element =&gt; elment is IHtmlAncorElement).FirstOrDefault(element =&gt; element.href.equals("#marker_1")); 
  if (ancorElement != null) /* so i don't know the right way */ ancorElement.Click() or ancorElement.Action()
  </code></pre>
  
  <p>So  i hope any know a way to run the link via c# code!</p>
  
  <p>Best regards</p>
  
  <p>Daniel</p>