<!DOCTYPE html> <html> <head> <meta http-equiv = "Content-Type" content = "text/html; charset = utf-8" /> <title> JavaScript IndexedDb Demo </title> </head> <body> <h2> JavaScript IndexedDb Demo </h2> <p id = "demos"> </p> </body> <script> function readRecords() { var mydb; const request_variable = indexedDB.open('book', 1); mydb =request_variable.result; var trans = mydb.transaction(["beginner"]); var objectStore = trans.objectStore("beginner"); var request1 = objectStore.get("1"); alert("database was opened") }; </script> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)