How can I use local storage to store the values ​​of several variables?

How can I use local storage to store the values ​​of several variables? is there any limit for local storage. which all browsers support local storage?

+5
source share
1 answer

Here is a good discussion about local storage limits in HTML5 HTML5 storage size limit for subdomains

As for browsers, here is a list,

Firefox 3.5, Safari 4, IE8, Chrome 4+: HTML5 localStorage; these modern browsers all support the core localStorage functionality defined in the HTML5 draft.

Firefox 2.x and 3.0: Gecko globalStorage, a very early implementation similar to HTML5’s localStorage.

Safari 3.1 & 3.2: HTML5 Database Storage, because Safari 3.1 and 3.2 don’t support HTML5 localStorage.

IE6, IE7: userData persistence, a rarely used IE feature for associating string data with an element on a web page and persisting it between pageviews.

Google Chrome Pre 4: Gears Database API, which is built into earlier versions of Chrome and thus doesn’t require a separate install.

Here is a list of browsers that support this functionality. https://stackoverflow.com/questions/1194784/which-browsers-support-html5-offline-storage

, HTML5

+7

All Articles