Indexed DB - 101 Tutorial With A Working Example

var idbRequest = window.indexedDB.open('Database Name');
    idbRequest.onsuccess = function(e) {
        var db = this.result;
        var transaction = db.transaction(idb_.objectStoreNames[0], IDBTransaction.READ_ONLY);
        var curRequest = transaction.objectStore('ObjectStore Name').openCursor();
        curRequest.onsuccess = ...;
    };