title: How to programmatically create a client side file in Javascript that can be downloaded by the user?
body: <p>I wanted to experiment creating a Javascript application that takes input from the user in a form and then generates a file based on the user's form input.</p>
  
  <p>The file should then be downloadable by the user all without touching the server.</p>
  
  <p>How do you create a file on the client side with JavaScript and where on the client side could it be stored so that it can be downloaded without being first created on the server?</p>
  
  <p>Update: To be more specific as Graham answered, I was looking for way to create the file without necessarily touching the file system itself, but just creating a file object (a Blob) that could be downloaded by the user. Thanks Graham!</p>