There are a few ways you can do this I will quote 2 that come into mind and are very simple methods.
HTML5 LOCAL STORAGE API
You can access the object localStorage and work with their methods setItem
and getItem
example:
localStorage.setItem("menu","visible");
localStorage.getItem("menu");
Here you can see some examples of the API and compartmentability.
Cookies
Nothing like our good, famous cookie.
I noticed you’re familiar with jQuery then
I believe this jQuery plugin will help you a lot is the
jquery.cookie
Example:
$.cookie('menu', 'visible'); //setando o valor visible para o cookie menu
$.cookie('menu') // lendo o cookie menu
Here this repository and all the documentation.
If you want to see this information stored in browse open the developer tool on Chrome
(Menu->Tools->Developer tools or press F12) click on the tab Resources
, there you can browse different browser storage resources and see the stored information of that domain.
Dude, really good, thanks d+. This HTML5 is ball show.
– robertaodj