HTML5 Question: Download Questions PDF
Do you know What is the sessionStorage Object in html5? How to create and access?
![HTML5 Interview Answer HTML5 Interview Question](https://globalguideline.com/public/images/interview/23.png)
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=“PHPZAG”;
document.write(sessionStorage.name);
</script>
<script type=“text/javascript”>
sessionStorage.name=“PHPZAG”;
document.write(sessionStorage.name);
</script>
Download HTML5 Interview Questions And Answers
PDF
Previous Question | Next Question |
Can you explain What the use of Canvas Element in HTML5? | Explain What is the use of localStorage in HTML5? |