I was wondering if it is possible to keep some data even after refreshing the page. For example, I have values in my array and I don’t want to lose them after refreshing the page.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use Cookies in javascript or the HTML5 localStorage,sessionStorage variable .
To use HTML5 LocalStorage, simply use it like variable preceded by localStorage.
To use HTML5 sessionStorage, simply use it like variable preceded by sessionStorage.
For more Info See Here