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

Using Local Storage in a form (Become an expert)

How many times have you filled out a form, only to find you lost an Internet connection, and have to restart afresh? Irritating, isn't it? No problem, we can easily fix this, using Local Storage. In this recipe, we're going to take a look at how you can use it within a simple demo form.

Getting ready

For this recipe, all we'll need in addition to our text editor is one image. It's to provide some background color, and a copy of it is present in the code that accompanies this book. I would strongly recommend creating a new folder to store your demo within. I will assume you have done this for the purposes of this demo.

How to do it...

Perform the following steps, for using Local Storage in a form:

  1. OK, ...

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