Introduction to HTML5 DOMStorage API with Example

HTML5 is a standard for structuring and presenting content on the World Wide Web. The new standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash and Microsoft Silverlight. HTML5 introduces a number of new elements and attributes that reflect typical usage on modern websites. Some of them are semantic replacements for common uses of generic block (

) and inline () elements, for example


  • Digester 12 October, 2010, 21:21

    Nice article, but you should really update your browser list there, especially chrome.

  • Nitin Gautam 4 November, 2012, 17:52

    How to access domstorage (localstorgae) objects in Java Servlet filter?

    • Viral Patel 5 November, 2012, 16:23

      Hi, It seems that there is no Servlet API for this as of now. All I can think of is to put domstorage value in a hidden html element and access it in Servlet via request parameter. Though this is not clean but atleast it will work. Hope future Servlet specifications have dedicated APIs to access DomStorage data.

  • sri 18 May, 2013, 11:38

    I studied technologies in your website. Its easy to learn.Thanks for your good work.
    i have one doubt that i want to retrieve data’s from DB and i want to store it on client side until the session end. I am using spring and jsp. Pls help. Thanks in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *


To post source code in comment, use [code language] [/code] tag, for example:

  • [code java] Java source code here [/code]
  • [code html] HTML here [/code]