Open a save file dialog for a js variable

Posted by Constructor on Stack Overflow See other posts from Stack Overflow or by Constructor
Published on 2010-06-05T13:42:58Z Indexed on 2010/06/05 13:52 UTC
Read the original article Hit count: 276

Filed under:
|
|

In my web app I need to give the user the option to save a js variable as a file (when the user clicks download, the app offers him to save a file, preffereably as .js file).

Similarly as google docs offers you to save a file.

Is it possible for javascript to pass it's variable this way?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about save