en.javascript.info/6-data-storage/02-localstorage/1-form-autosave/task.md

253 B

Autosave a form field

Create a textarea field that "autosaves" its value on every change.

So, if the user accidentally closes the page, and opens it again, he'll find his unfinished input at place.

Like this:

[iframe src="solution" height=120]