LocalStorage 101

A simple example of the use of localStorage for data persistence. When you enter a value in the input below, it is stored in localStorage. The value is then retrieved from localStorage and displayed on the page.

Read the source.

See all samples.