Back to Content

StorageEvent: oldValue property

files/en-us/web/api/storageevent/oldvalue/index.md

latest384 B
Original Source

{{APIRef("Web Storage API")}}

The oldValue property of the {{domxref("StorageEvent")}} interface returns the original value of the storage item whose value changed.

Value

A string containing the original value of the storage item.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("Web Storage API", "", "", "nocode")}}