title: Open local html file from link in page loaded in WebBrowser
body: <p>I have a WebBrowser control which I use to display dynamically generated html pages with different info, including html links.  Pages are loaded using webBrowser.DocumentText.  </p>
  
  <p>If I include a link to an external webpage, e.g. "<a href="https://somesite.com/file.htm" rel="nofollow noreferrer">https://somesite.com/file.htm</a>" the link works fine, but if I link to a local file, e.g. "file:///c:\temp\file.htm", nothing happens when I click the link.   </p>
  
  <p>If I grab the source from the page in the WebBrowser control, save it as an html file and open it in Edge, the link works fine.</p>
  
  <p>I've been browsing through a ton of webpages trying to find a solution but no luck, none of them seem to address this specific problem which I find strange, as it would seem like a common problem.</p>
  
  <pre><code>   string htmlCode = "&lt;html&gt;&lt;body&gt;&lt;a href=\"file:///c:\\temp\\testlink.htm\"&gt;link&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;";
          webBrowser1.DocumentText = htmlCode;
  </code></pre>