sessionStorage

Browser storage like localStorage, but scoped to a single tab and cleared when that tab is closed.

In more detail

Reloading the page keeps the data; closing the tab deletes it. Two tabs of the same site each get their own sessionStorage, which suits temporary state such as a half-filled form.

Related terms

Taught in

References