openDatabase



openDatabase
Not supported in IE or Firefox
openDatabase takes four arguments: a database name, a database version, a display name, and an estimated size, in bytes, of the data to be stored in the database.
Now on this database we can use the transaction() method. The transaction method takes one to three arguments: a transaction callback, an error callback, and a success callback.
The transaction callback gets passed a SQL transaction object on which you can use the executeSQL() method. This method takes from one to four arguments: a SQL statement, arguments, a SQL statement callback, and a SQL statement error callback.