How to auto save html textarea without button?

I have a textarea in my html like this:

<textarea id="area1"></textarea>

When visitors copy/paste or type something in this area i want it to save to a txt file without the visitor having to click any button.

Looked all over the web but can’t find any solution.

How to auto save html textarea without button?