Canvas
Canvas

Reputation: 5897

Javascript generate file and ask user to save it, possible?

I'm trying to create a simple function that will generate a file from Javascript and then ask the user to save it on their computer somewhere.

First off is that possible using just JavaScript?

Second if so do you have a tutorial page that explains how

Second if not, do you know of the best way to go around this?

Upvotes: 3

Views: 3849

Answers (1)

Canvas
Canvas

Reputation: 5897

Javascript: Create and save file The file known as FileSaver.js works fine :)

Cheers Robert Harvey

Upvotes: 1

Related Questions