Hi Folks,

 There are two ways to store the data in HTML as object locally:

LocalStorage -store data across session access
SessionStorage -store data for current session only

Data will be stored in key/value pair format.

eg:

localStorage.empid = "420";
SessionStorage.companyname = "hi ";

Comments

Popular posts from this blog