Insert data into database table
There is function to input data in table and function with proposal how to enter data.
12345678910function insertData(db, title, context) {db.transaction(function (e) {e.executeSql("INSERT INTO tizenTable(title, content) VALUES (?, ?)", [title, context]);});}// Proposal of entering data wroten by uservar enterdata = function (){insertData(db, prompt("Enter title:"), prompt("Enter content:"));}