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


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.



What do you mean by 'not working properly' ?