title: Save file to the local system using browser with the specified filename and extension using html & javascript without server interaction
body: <p>We are using HTML5 and javascript in one of our applications. The requirement is when the user clicks on a button we should download a file containing all the user entered data. There should be no server interaction to do this.</p>
  
  <p>By using ActiveX object we can do this. But it is limited to Internet Explorer only.</p>
  
  <p>By setting the response headers at the server also we can achieve this. But we can't use server interaction to do this.</p>
  
  <p>We tried to use base64 data with mime type as 'application/octect-stream'. It is downloading "xxx.part" file to the local system with the exact data. But we are unable to set our own file name and extension (as we can't use .part as extension) to the file.</p>
  
  <p>Please suggest us a way to download a file from the browser without server interaction with the desired file name and extension that works with all the browsers.</p>