I’ve created a simple function that works fine in Chrome, but provides null values in Firefox.  Can anyone tell me why? localStorage.setItem('foo', 'bar') alert(localStorage.getItem('foo')); If I run it as above, it works fine, but it fails in FF if I remove the first line after I running it.