E
x
c
e
l
P
T
P

What is the sessionStorage Object in HTML5 ? How you can create and access that?

February 22, 2014

The HTML5 sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window. We can create and access a sessionStorage, created “name” as session

 <script type=“text/javascript”>

sessionStorage.name=“mySessionStorage”;

document.write(sessionStorage.name);

</script>