Is Web Storage enabled by default on supported browsers?
-
07-07-2021 - |
Question
Given this support chart, can I assume that all the supporting browsers listed there enable this feature by default?
If not, what would be the simplest way to check if SessionStorage
is available?
Solution
if (!window.sessionStorage)
or
if (!("sessionStorage" in window))
How can I detect if Windows local storage is available?
HTML5 Local Storage fallback solutions
http://24ways.org/2009/breaking-out-the-edges-of-the-browser
http://mathiasbynens.be/notes/localstorage-pattern
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills --> Web Storage
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow