I can successfully bind an event for a change to localStorage (using jquery):
$(window).bind('storage', function(e)
{
alert('change');
});
localStorage.setItem('someItem', 'someValue');
If I use sessionStorage, the event will NOT fire:
$(window).bind('storage', function(e)
{
alert('change');
});
sessionStorage.setItem('someItem', 'someValue');
Why is this?
localStorage
. – Faruq