window.open safari mobile
Hi guys,
i try to open the url (http://www.google.com) in a new window. the url is stored in the localStorage-variable (locUrl).
the following code doesn't work on iphone ios 6.1.3 (mobile safari).
var url = localStorage.getItem('locURL');
if (navigator.app !== undefined) {
navigator.app.loadUrl(url, { openExternal:true } );
} else {
window.open(url, '_system');
}
event.preventDefault();
return false;
nothing happens when i try to load the url in safari on iphone. but it works perfect on firefox.
thanks for your help