JavaScript: Save contents of text box to local file

Author: Julian Hansen, March 2017

Enter CR delimited list of values and cllick "Save To File" button to save contents of <textarea> to local file

NB: This sample runs from a server but it is best demonstrated by loading directly into the browser. Save this file locally and then double click the HTML file on the local file system to load it in the browser. This will demonstrate how the file save capabilities work on non-server environment

Save to file