HTML web storage; better than cookies. The two mechanisms within Web Storage are as follows:
The Web Storage is one of the great features of HTML5. With the Web Storage feature, web applications can locally store data within the browser on the client side. It stores data in the form of key/value pair on the browser. Web Storage sometimes also known as DOM storage. Storing data with the help of web storage is similar to cookies, but it is better and faster than cookies storage. In compared to cookies Web Storage has Following Advantages:
Types of Web StorageThere are two types of web storage with different scope and lifetime.
|
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>
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 |
Example of HTML Web Storage API | HTML Web Storage API |
Read Full:: | HTML Web Storage API |
Category: | Web Tutorial |
Sub Category: | HTML Web Storage API |
Uploaded: | 7 months ago |
Uploaded by: | Admin |
Views: | 4 |
Ref on: | View |