?

Log in

Previous Entry | Next Entry

What is localStorage in Html 5?

It is feature in HTML5 which let us store user data locally within user’s browser.

How it different from Cookies?


  • They are more secure because web pages can access only access data stored by itself.

  • They are more faster

  • Easy to retrieve and write compare to cookies

  • Not included with every server request

  • Supports large amount of data and even won’t affect performance.

How it is different from sessionstorage?

localStorage stores data with no expiration date whereas sessionStorage stores data for one session


Can we see a small example?

localStorage.MyName="Sukesh Marla";
document.getElementById("Name").innerHTML="Name: "
+ localStorage.MyName;

Copy right www.questpond.com

Buy 600+ Real Time Interview Videos

Call +91-22-66752917 or mail us on questpond@questpond.com for more details on C#, .NET, ASP.NET, SQL Server interview question videos.

SQL Server interview question videos

Latest Month

January 2017
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Tags

Powered by LiveJournal.com