Online Interview Questions

Prepare interviews on Anything, AnyWhere

PHPSCOTS,Blogger, Developer Views: 1112

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 “blogName” as session

<script type="text/javascript">
sessionStorage.blogName="OnlineInterviewQuestions";
document.write(sessionStorage.name);
</script>

Leave a Reply

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