WHAT IS THE SESSIONSTORAGE OBJECT IN HTML5 ? HOW TO CREATE AND ACCESS?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
HTML5 
 2960  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    What is the sessionStorage Object in html5 ? How to create and access?

    The SessionStorage object stores the data for one session. The data is deleted when the user closes the browser window. like below we can create and access a SessionStorage here we created "name" as session
    <script type="text/javascript">
    SessionStorage.name="PCDS";
    document.write(SessionStorage.name);
    </script>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!