nsIDOMStorageEventObsolete 编辑
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.
dom/interfaces/storage/nsIDOMStorageEventObsolete.idl
Scriptable 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 66 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.
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, otherwisefalse
.cancelableArg
true
if the event can be canceled, otherwisefalse
.domainArg
- The domain to which the event belongs, or "#session" if the event is associated with session storage.
See also
Storage
StorageEvent
- Structured client-side storage (HTML 5 specification)
nsIDOMStorageItem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论