Phonegap: Similar API for IOS for app.loadurl in Android

advertisements

I am porting android phonegap (v1.3) application to ios. but stuck on following loadUrl api,
PhoneGap.exec(null, null, "App", "loadUrl", [url, props]);
I am not able to find out an api similar to this for IOS.
I could use window.location.href, but thats not working properly. :(
Is there a similar Api in iOS Phonegap? pls help.


I just tried the following code and they both work fine.

window.location="page.html";

window.location.href="page.html";

What do you mean by 'not working properly' ?