Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

localStorage check

<script type="text/javascript">

function testSupport() {  
if (localStorage)  {return "Local Storage: Supported"}
else  {
return "Local Storage: NOT supported";  
}
} 

alert ( testSupport() );
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Change the content of ALL the p tags 
Javascript :: node base64 svg to png 
Javascript :: bootstrapmaterialdatepicker get selected value on changes 
Javascript :: React Liked Component 
Javascript :: parse thymeleaf variable onclick 
Javascript :: javascript random to abs 
Javascript :: React Native - Trigger Media Scanner 
Javascript :: limiting the length of dynamic text inside html element 
Javascript :: redux how does dispatch know which reducer to call 
Javascript :: lucastools version info getter 
Javascript :: angular refresh component on button click 
Javascript :: unique id generator javascript 
Javascript :: which command is used to compile dart into JavaScript 
Javascript :: change string to object in html 
Javascript :: focus on child components on single page applications - 1 
Javascript :: jquery selected checkboxes pass as paramater to C# 
Javascript :: javascript auto detect if select input changed 
Javascript :: setEventListeners form inputs 
Javascript :: cannot Nesting classes sass nextjs 
Javascript :: Edit todo list react-redux 
Javascript :: spread operator shorthand javascript 
Javascript :: how to generate an array of random numbers in javascript 
Javascript :: speed of sound 
Javascript :: find invalid json files in directory 
Javascript :: downlaod file from website raect2 
Javascript :: node get request filepath 
Javascript :: node_modulesexpresslib outerindex.js:508 this.stack.push(layer); 
Javascript :: Public properties can be created via Static public fields 
Javascript :: Uncaught TypeError: document.getElementsByClassName(...).style is undefined 
Javascript :: npm resize div 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =