Insert data into database table

There is function to input data in table and function with proposal how to enter data.
1
2
3
4
5
6
7
8
9
10
        function insertData(dbtitlecontext) {
            db.transaction(function (e) {
                e.executeSql("INSERT INTO tizenTable(title, content) VALUES (?, ?)", [title, context]);
                });
        }
        
        // Proposal of entering data wroten by user
        var enterdata = function (){
            insertData(db, prompt("Enter title:"), prompt("Enter content:"));   
        }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX