title: How to create MHTML standalone file with same page links
body: <p>How do you export an <a href="https://stackoverflow.com/questions/13444586/distributing-a-html-document/13444636#13444636">MHTML standalone webpage</a> from google chrome that has correctly operating <a href="http://www.w3schools.com/html/html_links.asp" rel="nofollow noreferrer"><em>same page</em> links</a>?</p>
  
  <p>For instance, <a href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_link_locations" rel="nofollow noreferrer">download this working example</a> and open it in Chrome from your local machine:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;p&gt;
  &lt;a href="#C4"&gt;See also Chapter 4.&lt;/a&gt;
  &lt;/p&gt;
  
  &lt;h2&gt;Chapter 1&lt;/h2&gt;
  &lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;
  
  &lt;h2&gt;Chapter 2&lt;/h2&gt;
  &lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;
  
  &lt;h2&gt;Chapter 3&lt;/h2&gt;
  &lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;
  
  &lt;h2&gt;&lt;a id="C4"&gt;Chapter 4&lt;/a&gt;&lt;/h2&gt;
  &lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now <a href="https://superuser.com/questions/369232/how-to-save-a-web-page-as-mht-in-chrome">save it as an MHTML file</a> and try opening that MHTML version from your local machine. The hyperlink <em>does not</em> respond to a left mouse click. </p>
  
  <p>However, the link <em>will</em> work if you:</p>
  
  <ul>
  <li><p>manually type the hyperlink into the address bar:
  <code>file:///C:/Users/usr/Desktop/test.html#C4</code></p></li>
  <li><p>right click on the hyperlink and select "open in new tab"</p></li>
  </ul>
  
  <p>So clearly the link still exists, which is further evidenced by hovering over it:</p>
  
  <p><img src="https://i.stack.imgur.com/1UVGn.png" alt="enter image description here"></p>
  
  <p>So why can't a left mouse click trigger the hyperlink like it did for the .html version? </p>
  
  <p>This problem doesn't seem to exist for IE (at least for this example) and I have chrome <code>Version 35.0.1916.114 m</code>. It would be nice to know a general, platform independent solution to not restrict which browser is used to open the MHTML</p>