Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIDOMStorageEventObsolete

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

This interface represents an event that occurs to notify interested parties about changes to the contents of a DOM storage space; it is used for both session storage and local storage.
1.0
28
Introduced
Gecko 1.8
Obsolete
Gecko 2.0
Inherits from: nsIDOMEvent Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

When a DOM storage event is received, the recipient can check its domain attribute to determine which domain's data store has changed. If the value of the domain attribute is "#session", then the session storage has changed.

Note: This interface describes the old, non-standard form of this event. You should use the nsIDOMStorageEvent interface instead.

Method overview

void initStorageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in nsIDOMStorage storageAreaArg);

Attributes

Attribute Type Description
domain DOMString The domain of the storage area which changed, or "#session" if the event represents a change to session storage. Read only.

Methods

initStorageEvent()

Initializes a storage event.

void initStorageEvent(
  in DOMString typeArg,
  in boolean canBubbleArg,
  in boolean cancelableArg,
  in DOMString domainArg
);
Parameters
typeArg
The type argument.
canBubbleArg
true if the event is allowed to bubble, otherwise false.
cancelableArg
true if the event can be canceled, otherwise false.
domainArg
The domain to which the event belongs, or "#session" if the event is associated with session storage.

See also

ドキュメントのタグと貢献者

 このページの貢献者: Sheppy, trevorh
 最終更新者: Sheppy,