I should have articulated more, and now I have found a fix. Here is the scoop for perhaps others to benefit from: I built a web app and I just needed an app that could be installed that simply had a button on it to Launch to that web application in Android or IPhones. I used the Cordova InAppBrowser with the URL passed in.
var ref = cordova.InAppBrowser.open(url, '_system', 'location=no');
ref.addEventListener('loadstart', function() { alert(event.url); });
The parameter “_System” will open the web page from the button click on the NSBASIC/PHONEGAP application in the native browser of the OS on that device. This works all fine, but on the IPhone, the window would open “behind” the main Mobile application screen that showed the button, or, the “Form1” of the application.
I added the following after the lines of code above to hide “Form1” so the InAppBrowser window would appear “on top” else everyone thought it wasn’t working.
Form1.hide();
By doing that, the Button Object and Container holding some text would also disappear, so if they returned to this after closing the InAppBrowser window, they would not see the button again.
I found a fix, funny enough, by simply showing the form again. So here is all the code that is needed to build a mobile app that simply launches to a web page or web application, brings the windows to the front, and keeps the application loaded behind the native web browser window of each device type, and when returning the button is still showing:
function ShowImage(url) {
try {
var ref = cordova.InAppBrowser.open(url, '_system', 'location=no');
ref.addEventListener('loadstart', function() { alert(event.url); });
Form1.hide();
}
catch (e) {
NSB.MsgBox(e);
}
Form1.show();
};