Creates a new cookie store.
An object providing values to initialize this instance.
ReadonlydefaultsThe default cookie options.
Static ReadonlychangeThe change event type.
The keys of this cookie store.
The number of entries in this cookie store.
Returns a new iterator that allows iterating the entries of this cookie store.
An iterator for the entries of this cookie store.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsRemoves all entries from this cookie store.
The cookie options.
Removes the value associated with the specified key.
The cookie name.
The cookie options.
The value associated with the key before it was removed.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Gets the deserialized value associated with the specified key.
The cookie name.
The cookie value, or null if the key does not exist or the value cannot be deserialized.
Gets a value indicating whether this cookie store contains the specified key.
The cookie name.
true if this cookie store contains the specified key, otherwise false.
Registers a function that will be invoked whenever the change event is triggered.
The event handler to register.
This instance.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSerializes and associates a given value with the specified key.
The cookie name.
The cookie value.
The cookie options.
This instance.
Provides access to the HTTP Cookies.