title: How do I open a file stream in javascript?
body: <p>To give a concrete example of what I mean: </p>
  
  <p>Imagine I have an HTML page that looks like this</p>
  
  <pre><code>&lt;div&gt;
     &lt;div id="filecontents"&gt;
         &lt;!-- some html file contents --&gt;
     &lt;/div&gt;
     &lt;input type="button" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to be able to click on the button, and it bring me up with a "Open or save file" dialog box.</p>
  
  <p>Is this even possible? </p>
  
  <p>The objective of this is, is for me to be able to open up some html, text, or a CSV using the contents of a div as a data source for the file.</p>