18.11.2017 Views

html5_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTML5<br />

HTML Code<br />

To show all the data we need to use onClick event as shown below code −<br />

<br />

<br />

<br />

<br />

IndexedDb Demo | onlyWebPro.com<br />

<br />

<br />

Read <br />

<br />

<br />

Delete <br />

<br />

<br />

The final code should be as:<br />

<br />

<br />

<br />

<br />

<br />

//prefixes of implementation that we want to test<br />

window.indexedDB = window.indexedDB || window.mozIndexedDB ||<br />

window.webkitIndexedDB || window.msIndexedDB;<br />

//prefixes of window.IDB objects<br />

window.IDBTransaction = window.IDBTransaction ||<br />

window.webkitIDBTransaction || window.msIDBTransaction;<br />

window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange ||<br />

window.msIDBKeyRange<br />

if (!window.indexedDB) {<br />

154

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!