4 function transactionCallback()
6 document
.getElementById("result").innerHTML
= "Callback was called. Test passed";
8 var db
= openDatabase("DatabaseCallbackDeferred", "1.0", "", 1);
9 db
.transaction(function(tx
) { tx
.executeSql("CREATE TABLE IF NOT EXISTS CallbackDeferredTest (randomData)", []); }, transactionCallback
, transactionCallback
);
11 alert("Wait for a few seconds and close it");
14 <body onload=
"test()">
15 <p id=
"result">Wait...
</p>