Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- </head>
- <body>
- <script>
- var database;
- window.openDatabase(
- 'documents', '1.0',
- 'Offline document storage', 5*1024*1024, function (db) {
- database = db;
- database.transaction(function(tx) {
- tx.executeSql('CREATE TABLE docids (id, name)', function() {
- tx.executeSql('INSERT INTO docids (100, ' + new Date()+ ')');
- });
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement