W3Schools recommends (http://www.w3schools.com/html/html5_webstorage.asp)
if(typeof(Storage) !== "undefined") {
// Code for localStorage/sessionStorage.
} else {
// Sorry! No Web Storage support..
}
to check whether a local storage is available in the browser.
I use the following
var l=localStorage!==null?localStorage:0;
if(l) { /*code for locale storage*/}
and was wondering whether this is sufficient and reliable on all browsers?
Thx I really appreciate your help!