Here we comes to know how to store data into HTML5 local database. HTML5 introduced Local storage concepts. The Main use for this concept was offline capabilities and local persisted storage features, you can deliver the same rich user experiences online and offline that were previously available only in proprietary desktop application development frameworks. HTML5 localStorage is synchronous and is currently the only database storage mechanism that is supported cross-platform and cross-browser.
How to use?
SetItems to Local DB:
For ex :
Var serNumArr = ;//Create Array put your rec into this array
var notiNumRcvdString = JSON.stringify(serNumArr);
GetItems from DB:
newScanArray = window.localStorage.getItem(“NewSerialNumbersMob26”); // It will return your rec
var getSerNumInArray = new Array();
getSerNumInArray = JSON.parse(newScanArray);// Convert your Db rec to Below format
Internal function of JSON.parse(newScanArray):
getSerNumInArray  = 124567
getSerNumInArray  = 1245789 …
It will remove Items based on your KeyValue