# DOMStorage
_Auto generated documentation for WebKit inspector
Query and modify DOM storage.
* Commands
* [enable](#domstorageenablecallback)
* [disable](#domstoragedisablecallback)
* [getDOMStorageItems](#domstoragegetdomstorageitemsstorageid-callback)
* [setDOMStorageItem](#domstoragesetdomstorageitemstorageid-key-value-callback)
* [removeDOMStorageItem](#domstorageremovedomstorageitemstorageid-key-callback)
* Events
* [domStorageItemsCleared](#event-domstorageitemscleared)
* [domStorageItemRemoved](#event-domstorageitemremoved)
* [domStorageItemAdded](#event-domstorageitemadded)
* [domStorageItemUpdated](#event-domstorageitemupdated)
* Types
* [StorageId](#class-storageid)
* [Item](#class-item)
## Commands
### DOMStorage.enable(callback)
Enables storage tracking, storage events will now be delivered to the client.
### Parameters
_**callback ( function )**_
### Results
_**error ( error )**_
### DOMStorage.disable(callback)
Disables storage tracking, prevents storage events from being sent to the client.
### Parameters
_**callback ( function )**_
### Results
_**error ( error )**_
### DOMStorage.getDOMStorageItems([StorageId](#class-storageid), callback)
### Parameters
_**storageId ( [StorageId](#class-storageid) )**_
_**callback ( function )**_
### Results
_**error ( error )**_
_**entries ( array of [Item](#class-item) )**_
### DOMStorage.setDOMStorageItem([StorageId](#class-storageid), key, value, callback)
### Parameters
_**storageId ( [StorageId](#class-storageid) )**_
_**key ( string )**_
_**value ( string )**_
_**callback ( function )**_
### Results
_**error ( error )**_
### DOMStorage.removeDOMStorageItem([StorageId](#class-storageid), key, callback)
### Parameters
_**storageId ( [StorageId](#class-storageid) )**_
_**key ( string )**_
_**callback ( function )**_
### Results
_**error ( error )**_
## Events
### Event: domStorageItemsCleared
### Results
_**storageId ( [StorageId](#class-storageid) )**_
### Event: domStorageItemRemoved
### Results
_**storageId ( [StorageId](#class-storageid) )**_
_**key ( string )**_
### Event: domStorageItemAdded
### Results
_**storageId ( [StorageId](#class-storageid) )**_
_**key ( string )**_
_**newValue ( string )**_
### Event: domStorageItemUpdated
### Results
_**storageId ( [StorageId](#class-storageid) )**_
_**key ( string )**_
_**oldValue ( string )**_
_**newValue ( string )**_
## Types
### Class: StorageId
_Type: object_
DOM Storage identifier.
### Properties
_**securityOrigin ( string )**_
> Security origin for the storage.
_**isLocalStorage ( boolean )**_
> Whether the storage is local storage (not session storage).
### Class: Item
_Type: array_
DOM Storage item.