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

10 lines
253 B
Markdown

# 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]