W3C home > Mailing lists > Public > public-html-comments@w3.org > May 2010

Onstorage Event

From: Jaikishan Jalan <jai.ism@gmail.com>
Date: Wed, 5 May 2010 18:31:37 -0700
Message-ID: <t2ub6958bd81005051831n64f8b597x4c023fdf78c74c2c@mail.gmail.com>
To: public-html-comments@w3.org

I understand that onstorage event will be invoked if setItem, removeItem or
clear is invoked on either sessionStorage object or localStorage object. I
am curious how can I determine which object has changed from within the
onstorage event handler. To be precise, is the function called because
localStorage object changed or sessionStorage object changed. storageArea
attribute to event object does not help. If this is not possible, I am
curious what is the reason behind not to support this ? I can imagine user
wants to do different thing based on if localStorage changed or
sessionStorage changed.

Received on Thursday, 6 May 2010 01:32:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC