check if browser supports Local Storage code example
Example: check if browser supports Local Storage
if (typeof(Storage) !== "undefined")
{
console.log("localStorage is available.");
}
else
{
console.log("localStorage is not supported by current browser.");
}