Browser Support Test

HTML5 introduced two new APIs for in-browser persistent data storage: sessionStorage and localStorage.

To test if a browser supports either of the Storage APIs, use the following feature-detect:

snippet
var storage_support = window.sessionStorage || window.localStorage;
Related Tutorial