StorageEvent

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

A StorageEvent is sent to a window when a storage area it 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?

Returns the key of the storage item being changed.

Link copied to clipboard

Returns the new value of the key of the storage item whose value is being changed.

Link copied to clipboard
Link copied to clipboard

Returns the old value of the key of the storage item whose value is being changed.

Link copied to clipboard

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

Returns the URL of the document whose storage item 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