It is possible!
with the new html5 function, js can connect via WebSql. live example: http://html5demos.com/database
The syntax is similar to all other sql shells:
var db = openDatabase('mydb', '1.0', 'my first database', 2 * 1024 * 1024); db.transaction(function (tx) { tx.executeSql('CREATE TABLE foo (id unique, text)'); });
currently supported by chrome, safari and opera
here is a tutorial: http://html5doctor.com/introducing-web-sql-databases/
source share