Answers for "check if browser supports Local Storage"

0

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."); 
}
Posted by: Guest on April-23-2021

Code answers related to "check if browser supports Local Storage"

Browse Popular Code Answers by Language