Tanya Prashar
Tanya Prashar

Reputation: 27

redirect page in phonegap

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

Answers (2)

satryacode
satryacode

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

Manann Sseth
Manann Sseth

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

Related Questions