O'Reilly logo

Instant HTML5 Local Storage How-to by Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic detection for storage support (Must know)

Great! We've looked at Session Storage and Local Storage, and learnt how we can use both to store information in the browser rather than having to push it back to the server.

There's one thing wrong with the preceding statement. The more observant amongst you would have noted from my earlier comments that while browser support is actually very good, it still isn't supported in older browsers!

After all, it is a part of the HTML5 specification, which has naturally only been available over the last few years, and has garnered support from the more recent browsers. While we can't retrofit support to older browsers, we can at least implement a basic check for it, which is the subject of our next task. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required