- From: Jeremy Orlow <jorlow@chromium.org>
- Date: Thu, 6 May 2010 12:39:35 +0100
- To: Jaikishan Jalan <jai.ism@gmail.com>
- Cc: public-html-comments@w3.org
Received on Thursday, 6 May 2010 11:40:24 UTC
On Thu, May 6, 2010 at 2:31 AM, Jaikishan Jalan <jai.ism@gmail.com> wrote: > Hello, > > 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 Why not? See if it equals localStoarge or sessionStorage. > 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. > > -- > Thanks, > Jaikishan
Received on Thursday, 6 May 2010 11:40:24 UTC