How to load any website using javascript from the html page that Cordova will open in my app? So that I can also use the functionality of phonegap?
Asked
Active
Viewed 816 times
-3
-
What version of phonegap/cordova you are using? window.location should work as mentioned in the comment http://stackoverflow.com/questions/12280351/how-navigate-one-page-to-another-page-in-android-phonegap – kumar May 04 '15 at 12:39
-
'C:\Users\user>cordova -v 5.0.0' 'C:\Users\user>npm -v 2.7.4' – user3206010 May 05 '15 at 07:40
1 Answers
0
you can redirect with below code also and Please for testing use your own url
window.location = "https://www.google.com/";
var ref = window.open('http://apache.org', '_blank', 'location=yes');
window.location.href = "http://stackoverflow.com";

Steve Kennedy
- 5,312
- 3
- 26
- 41
-
I already tried it, but result is, that the website is running in the browser tab and not in my app. Also if I use '
' in the config.xml – user3206010 May 01 '15 at 23:49 -
exactly what's happening with mine...am going crazy here. works fine in iOS but not in Android – Jay Smoke Nov 05 '15 at 20:55