How to make the download a zip file with a txt from a textarea?

How to do so: the person enters text in textarea, then clicks on a button and begin downloading the zip file, which is a text document with the text that the user entered in the textarea?
June 3rd 19 at 19:09
1 answer
June 3rd 19 at 19:11
Well, or to the server via ajax to send there to compress and result download.

Find more questions by tags JavaScriptWeb Development