Reputation: 27
PhoneGap is not able to open the internal link.In my html I am using href tag But unable to load the webpage..Can anyone please suggest how to redirect one html page to another html page in phonegap ?
Upvotes: 0
Views: 2502
Reputation: 13
How About redirecting page automatically in iphone?
For example, i have used $.mobile.changePage("login.html");
based on jQuery Mobile, but the app just displays a blank page.
Whether to use $.mobile.changePage();
to redirect page in iphone?
It runs well in Android.
Upvotes: 0
Reputation: 2745
You can try this.
Code ::
HTML
<a href="javascript:goToNext()">Next Page</a>
Javascript
<script type="text/javascript">
function goToNext() {
window.location.href = './NextPage.html';
}
</script>
Hopefully, This will help you for navigating to a new page.
Thanks.
Upvotes: 1