Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing page using Javascript

I building a Phonegap application. I have 7-8 pages, and I need to navigate between them using Javascript. I have tried usingwindow.open and window.location but those don't work.

How do I change the page using Javascript?

like image 618
user1058043 Avatar asked Jul 24 '26 21:07

user1058043


1 Answers

the following code working for me.

window.location="success.html";

after login success I am calling above code. It is redirecting to success page in android phonegap.

like image 158
Naresh Avatar answered Jul 26 '26 14:07

Naresh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!