Packagewebstorage
Classpublic class StorageEvent
InheritanceStorageEvent Inheritance Event Inheritance Object

Introduced in: HTML 5 

Is fired when a storage area changes

See also

W3C Web Storage Specification
Quirksmode: HTML5 compatibility - Local storage and session storage


Public Properties
 PropertyDefined By
 InheritedDOM 2 Events bubbles : Boolean
[read-only] Used to indicate whether or not an event is a bubbling event.
Event
 InheritedDOM 2 Events cancelable : Boolean
[read-only] Indicates whether the event is cancelable or not.
Event
 InheritedDOM 2 Events currentTarget : EventTarget
[read-only] Identifies the current target for the event, as the event traverses the DOM.
Event
 InheritedDOM 3 Events defaulPrevented : Boolean
[read-only] Used to indicate whether Event.preventDefault() has been called for this event.
Event
  Non-Standard domain : DOMString
[read-only] The domain the field is stored in.
StorageEvent
 InheritedDOM 2 Events eventPhase : Number
[read-only] Used to indicate which phase of event flow is currently being accomplished.
Event
 InheritedNon-Standard explicitOriginalTarget : nsIDOMEventTarget
[read-only] The explicit original target of the event.
Event
 InheritedNon-Standard isTrusted : Boolean
[read-only] Determines if the event was from the user or script generated.
Event
  Web Storage key : DOMString
[read-only] The key being changed.
StorageEvent
 InheritedDOM 3 Events namespaceURI : DOMString
[read-only] The namespace URI associated with this event at initialization time, or null if it is unspecified.
Event
  Web Storage newValue : DOMString
[read-only] The new value of the key being changed.
StorageEvent
  Web Storage oldValue : DOMString
[read-only] The old value of the key being changed.
StorageEvent
 InheritedNon-Standard originalTarget : *
[read-only] The original target of the event before any retargetings.
Event
  Web Storage source : WindowProxy
[read-only] The WindowProxy object of the browsing context of the document whose key changed.
StorageEvent
  Web Storage storageArea : Storage
[read-only] The Storage object that was affected.
StorageEvent
 InheritedDOM 2 Events target : EventTarget
[read-only] Used to indicate the event target.
Event
 InheritedDOM 2 Events timeStamp : DOMTimeStamp
[read-only] Used to specify the time at which the event was created in milliseconds relative to 1970-01-01T00:00:00Z.
Event
 InheritedDOM 2 Events type : DOMString
[read-only] The local name of the event type.
Event
  Non-Standard uri : DOMString
[read-only] The URL of the page that changed the field.
StorageEvent
  Web Storage url : DOMString
[read-only] The address of the document whose key changed.
StorageEvent
Public Methods
 MethodDefined By
 Inherited
DOM 2 Events initEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean):void
Initializes attributes of an Event created through the DocumentEvent.createEvent method.
Event
 Inherited
DOM 3 Events initEventNS(namespaceURIArg:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean):void
Initializes attributes of an Event object.
Event
  
Web Storage initStorageEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, keyArg:DOMString, oldValueArg:DOMString, newValueArg:DOMString, urlArg:DOMString, sourceArg:WindowProxy, storageAreaArg:Storage):void
Initializes attributes of an Event created through the DocumentEvent.createEvent method.
StorageEvent
  
Web Storage initStorageEventNS(namespaceURI:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, keyArg:DOMString, oldValueArg:DOMString, newValueArg:DOMString, urlArg:DOMString, sourceArg:WindowProxy, storageAreaArg:Storage):void
Initializes attributes of a StorageEvent object.
StorageEvent
 Inherited
 Obsolete preventBubble():void
Prevents the event from bubbling.
Event
 Inherited
 Obsolete preventCapture():void
This method is deprecated in favor of standard stopPropagation and is removed in Gecko 1.9.
Event
 Inherited
DOM 2 Events preventDefault():void
Cancels the event if it is cancelable, without stopping further propagation of the event.
Event
 Inherited
DOM 3 Events stopImmediatePropogation():void
Prevents other event listeners from being triggered and, unlike Event.stopPropagation() its effect is immediate .
Event
 Inherited
DOM 2 Events stopPropogation():void
Prevents other event listeners from being triggered but its effect is deferred until all event listeners attached on the Event.currentTarget have been triggered .
Event
Public Constants
 ConstantDefined By
 InheritedHTML 4.0 abort : String = abort
[static] Loading of a resource has been aborted.
Event
 InheritedDOM 2 Events AT_TARGET : Number = 2
[static] The current event is in the target phase, i.e.
Event
 InheritedDOM 2 Events BUBBLING_PHASE : Number = 3
[static] The current event phase is the bubbling phase.
Event
 InheritedDOM 2 Events CAPTURING_PHASE : Number = 1
[static] The current event phase is the capture phase.
Event
 InheritedHTML 4.0 change : String = change
[static] A control loses the input focus and its value has been modified since gaining focus.
Event
 InheritedHTML 4.0 error : String = error
[static] A resource failed to load, or has been loaded but cannot be interpreted according to its semantics such as an invalid image, a script execution error, or non-well-formed XML.
Event
 InheritedHTML 4.0 load : String = load
[static] The DOM Implementation finishes loading the resource (such as the document) and any dependent resources (such as images, style sheets, or scripts).
Event
 InheritedHTML 4.0 reset : String = reset
[static] A form, such as a [HTML 4.01] or [XHTML 1.0] form, is reset.
Event
 InheritedHTML 4.0 select : String = select
[static] A user selects some text.
Event
 InheritedHTML 4.0 submit : String = submit
[static] A form, such as a [HTML 4.01] or [XHTML 1.0] form, is submitted.
Event
 InheritedHTML 4.0 unload : String = unload
[static] The DOM implementation removes from the environment the resource (such as the document) or any dependent resources (such as images, style sheets, scripts).
Event
Property Detail
domainproperty
domain:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b

Non-standard (Mozilla)

The domain the field is stored in.


Implementation
    public function get domain():DOMString

See also

Web Storage keyproperty 
key:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The key being changed.


Implementation
    public function get key():DOMString

See also

Web Storage newValueproperty 
newValue:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The new value of the key being changed.


Implementation
    public function get newValue():DOMString

See also

Web Storage oldValueproperty 
oldValue:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The old value of the key being changed.


Implementation
    public function get oldValue():DOMString

See also

Web Storage sourceproperty 
source:WindowProxy  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The WindowProxy object of the browsing context of the document whose key changed.


Implementation
    public function get source():WindowProxy

See also

Web Storage storageAreaproperty 
storageArea:Storage  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The Storage object that was affected.


Implementation
    public function get storageArea():Storage

See also

uriproperty 
uri:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b

Non-standard (Apple)

The URL of the page that changed the field.


Implementation
    public function get uri():DOMString

See also

Web Storage urlproperty 
url:DOMString  [read-only]

Product Versions : Internet Explorer 5.5 Internet Explorer 6.0 Internet Explorer 7.0 Internet Explorer 8.0 as IE7 Internet Explorer 8.0 as IE8 Firefox 2.0 Firefox 3.0 Firefox 3.5b4 Safari 3.0 Safari 3.1 Safari 4.0 Chrome 1.0 Chrome 2.0 Opera 9.62 Opera 10.0b
Introduced in: HTML 5 

The address of the document whose key changed.


Implementation
    public function get url():DOMString

See also

Method Detail
Web Storage initStorageEvent()method
public function initStorageEvent(typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, keyArg:DOMString, oldValueArg:DOMString, newValueArg:DOMString, urlArg:DOMString, sourceArg:WindowProxy, storageAreaArg:Storage):void

Introduced in: DOM 3 Events 

Initializes attributes of an Event created through the DocumentEvent.createEvent method.

Parameters

typeArg:DOMString — Event.type, the local name of the event type.
 
canBubbleArg:Boolean — Specifies Event.bubbles. This parameter overrides the intrinsic bubbling behavior of the event.
 
cancelableArg:Boolean — Specifies Event.cancelable. This parameter overrides the intrinsic cancelable behavior of the event.
 
keyArg:DOMString — The key being changed.
 
oldValueArg:DOMString — The old value of the key being changed.
 
newValueArg:DOMString — The new value of the key being changed.
 
urlArg:DOMString — The address of the document whose key changed.
 
sourceArg:WindowProxy — The WindowProxy object of the browsing context of the document whose key changed.
 
storageAreaArg:Storage — The Storage object that was affected.

See also

Web Storage initStorageEventNS()method 
public function initStorageEventNS(namespaceURI:DOMString, typeArg:DOMString, canBubbleArg:Boolean, cancelableArg:Boolean, keyArg:DOMString, oldValueArg:DOMString, newValueArg:DOMString, urlArg:DOMString, sourceArg:WindowProxy, storageAreaArg:Storage):void

Introduced in: DOM 3 Events 

Initializes attributes of a StorageEvent object. This method has the same behavior as Event.initEventNS().

Parameters

namespaceURI:DOMString — Refer to the Event.initEventNS() method for a description of this parameter.
 
typeArg:DOMString — Refer to the Event.initEventNS() method for a description of this parameter.
 
canBubbleArg:Boolean — Refer to the Event.initEventNS() method for a description of this parameter.
 
cancelableArg:Boolean — Refer to the Event.initEventNS() method for a description of this parameter.
 
keyArg:DOMString — Specifies StorageEvent.key.
 
oldValueArg:DOMString — Specifies StorageEvent.oldValue.
 
newValueArg:DOMString — Specifies StorageEvent.newValue.
 
urlArg:DOMString — Specifies StorageEvent.url.
 
sourceArg:WindowProxy — Specifies StorageEvent.source.
 
storageAreaArg:Storage — Specifies StorageEvent.storageArea.

See also