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

Answer

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>

All html5 Questions

Ask your interview questions on html5

Write Your comment or Questions if you want the answers on html5 from html5 Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---