Horje

Example of HTML Web Storage API

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>
 <div id="result"></div>
 <script>
  if(typeof(Storage)!=="undefined") {
   document.getElementById("result").innerHTML = "Hey, Your browser supports the Web Storage.";
  }
  else{
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage";
  }
</script>
</body>
</html>

Output should be:

Example of HTML Web Storage API



Single Articles
Example of HTML Web Storage APIHTML Web Storage API


Related Articles
What is HTML Web Storage API HTML Web Storage API
What is HTML Web Storage? HTML Web Storage API
What Browsers will Support HTML Web Storage API HTML Web Storage API
How to create HTML Web Storage Objects HTML Web Storage API
How to create HTML localStorage Object HTML Web Storage API
How to create HTML sessionStorage Object HTML Web Storage API

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML Web Storage API
Uploaded by:
Admin



Share on: