StorageEvent

open class StorageEvent(val type: EventType<StorageEvent>, init: StorageEventInit = definedExternally) : Event(source)

The StorageEvent interface is implemented by the Window/storage_event event, which is sent to a window when a storage area the window has access to is changed within the context of another document.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<StorageEvent>, init: StorageEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String?

The key property of the StorageEvent interface returns the key for the storage item that was changed.

Link copied to clipboard

The newValue property of the StorageEvent interface returns the new value of the storage item whose value was changed.

Link copied to clipboard
Link copied to clipboard

The oldValue property of the StorageEvent interface returns the original value of the storage item whose value changed.

Link copied to clipboard

The storageArea property of the StorageEvent interface returns the storage object that was affected.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<StorageEvent>
Link copied to clipboard
val url: String

The url property of the StorageEvent interface returns the URL of the document whose storage changed.

Functions

Link copied to clipboard
open override fun asInit(): StorageEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard