Skip to content Skip to sidebar Skip to footer

How To Pass Values From One Html Page To The Other Html Page In Phonegap?

i have searched for this answer and i got 2 sort of replies,which i found i could implement it. they are.. window.location.href=href='2ndpage.html?var id=results.rows.item(1).id';

Solution 1:

This is how we pass values from one html to another html pages in PHONEGAP

functiontest()
        {
            window.location.href="index.html?var id=1";
        }

        <div id="test"><imgsrc="img/test.png"onClick="test()"/></div>

Solution 2:

In addition to URL param, you can also set the localStorage, sessionStorage, or cookie. In a single page application, you can just set some variable.

Post a Comment for "How To Pass Values From One Html Page To The Other Html Page In Phonegap?"