title: Client Javascript to download HTML and save to file
body: <p>I would like to see whether what I'm proposing sounds feasible. I'm not very up to date with javascript, but I think what I want to do is reasonable.</p>
  
  <p>I've created a Chrome Extension, which is a Page Action that appears on sites with certain characteristics. What I would like to do is have an option in my <code>popup.html</code> that, when selected, will write the fully loaded DOM into a text file on the disk.</p>
  
  <p>I've scoured and searched around, but I can't seem to find any clear examples of this functionality. <a href="https://stackoverflow.com/questions/7160720/create-a-file-using-javascript-in-chrome-on-client-side">This</a> helped me confirm that javascript will be able to help me capture the <code>.html</code>, but I'm not sure if I can trigger it from my extension's <code>popup.html</code>.</p>
  
  <p>So, my question: Is it possible to download a page's html and write the file to the disk from a Chrome Extension?</p>
  
  <p>As a follow up: Is it possible to execute a <code>.exe</code> file from a Chrome Extension? In other words, I would like to write the <code>.html</code> to the disk and then trigger a <code>.exe</code> file to do something to that file.</p>
  
  <p>I'm going to attempt to do this in some fashion or another, but I would sincerely appreciate any pointers or help in the correct direction.</p>