Module

x/evt/lib/index.ts>dom.StorageEvent

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.StorageEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { StorageEvent } = dom;

A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document.

Properties

readonly
key: string | null

Returns the key of the storage item being changed.

readonly
newValue: string | null

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

readonly
oldValue: string | null

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

readonly
storageArea: Storage | null

Returns the Storage object that was affected.

readonly
url: string

Returns the URL of the document whose storage item changed.