StorageEvent

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

The StorageEvent interface is implemented by the storage 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
open external val bubbles: Boolean
Link copied to clipboard
open external val cancelable: Boolean
Link copied to clipboard
open external val composed: Boolean
Link copied to clipboard
open external val currentTarget: EventTarget?
Link copied to clipboard
open external val defaultPrevented: Boolean
Link copied to clipboard
open external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
open external val key: String?

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

Link copied to clipboard
open external val newValue: String?

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

Link copied to clipboard
open external val oldValue: String?

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

Link copied to clipboard
open external val storageArea: Storage?

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

Link copied to clipboard
open external val target: EventTarget?
Link copied to clipboard
open external val timeStamp: DOMHighResTimeStamp
Link copied to clipboard
open external override val type: EventType<StorageEvent>
Link copied to clipboard
open external 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 external fun composedPath(): ReadonlyArray<EventTarget>
Link copied to clipboard
open external fun preventDefault()
Link copied to clipboard
open external fun stopImmediatePropagation()
Link copied to clipboard
open external fun stopPropagation()