Return to Test Drive Home

DOM Storage

The W3C Web Storage API provides two new ways of storing information on the client side - the sessionStorage and localStorage objects. This demo shows how to use these new APIs to persist information locally without using cookies.
In the form below, there are two sections. One works with sessionStorage, the other with localStorage. Try entering some data and refreshing the page or navigating away and back again to see how the different storage mechanisms work!
Session Storage

Enter some text:

Local Storage

Enter some text: