Creo en nosotros. Wikipedia.
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 <meta name="apple-touch-fullscreen" content="YES" />2 <meta name="apple-mobile-web-app-capable" content="yes" />3 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />4 <h1>IndexedDB Introspection [LOggER]</h1>5 <div>6  <button onclick="open_database();">Open database</button>7  <input id="database_name" value="my_db" size=5>8  <input id="database_version" value="9" size=1>9 </div>10 11 12 <script type="text/javascript">13 var db = null;14 15 function open_database() {16  db = indexedDB.open(document.getElementById('database_name').value, document.getElementById('database_version').value);17  logger.log(db);18  19  db.onerror = function(event) {20  logger.log(event);21  }22  23  db.onsuccess = function(event) {24  logger.log(event);25  }26  27  db.onblocked = function(event) {28  logger.log(event);29  }30  31  db.onupgradeneeded = function(event) {32  logger.log(event);33  //var db = event.target.result;34  //var objectStore = db.createObjectStore("configuration", { keyPath: "key" });35  //logger.log(db);36  }37  38 }39 40 </script>
Enlace
El enlace para compartir es: