I am trying to make an application in phonegap. I have made a custom.js javascript file which have some functions as
function func1(){....}
function func2(){
in modern browsers you can use localStorage for that
var get = function (key) {
return window.localStorage ? window.localStorage[key] : null;
}
var put = function (key, value) {
if (window.localStorage) {
window.localStorage[key] = value;
}
}
use get and put to store value to the local storage of most modern browsers..