Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

storagecommit | onstoragecommit event

Fires when a local Web Storage area is written to disk.

Internet Explorer 8


HTML Attribute <element onstoragecommit = "handler(event)">
Event Property object.onstoragecommit = handler;
attachEvent Method object.attachEvent("onstoragecommit", handler)
addEventListener Method object.addEventListener("storagecommit", handler, useCapture)

Event information


Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.


Local storage is saved to disk asynchronously to improve performance. The onstoragecommit event can be used to determine when the disk storage has been updated.

To invoke this event, do one of the following:

  • Set or update a local storage value with setItem.
  • Remove a local storage value with removeItem.

See also

Introduction to Web Storage



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.