Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if local storage is available

if (typeof(Storage) !== "undefined") 
{ 
	console.log("localStorage is available."); 
} 
else 
{ 
	console.log("localStorage is not supported by current browser."); 
} 
Source by lms.monash.edu #
 
PREVIOUS NEXT
Tagged: #check #local #storage
ADD COMMENT
Topic
Name
5+1 =