Storing and Retrieving an Array from Local Storage |

by kirupa | 5 November 2012

Local storage is great for storing data that you want to persist across browser sessions. The way local storage works is by storing data in key and value pairs. To retrieve the data, just pass in the same key associated with what you stored earlier. If all this is news to you, take a few moments and check out my HTML5 Local Storage tutorial first. The rest of what I am about to say makes more sense if you know the basics of how local storage works.

This is a companion discussion topic for the original entry at

now that we have access to movies2 how can we output each element from movies2 in HTML?

That’s a great question. How are you planning on outputting the data? In a flat list, as bulleted items, etc?