Hi!
I've tried hundreds of ways how to open external Links with HTML5 and Phonegap Build ... It seems as if somethin is missing!
I've included this one:
script type="text/javascript" src="cordova.js" /script
And I tried this kind of links:
a href="#" onclick="window.open('http://www.nhl.com', '_blank', 'location=yes');">_blank /a
a href="#" onclick="window.open('http://www.nhl.com', '_system', 'location=yes');">_system /a
a href="#" onclick="window.open'http://www.nhl.com', '_self', 'location=yes');">_self /a
a href="#" onclick="openUrlInBlankBrowser();" target="_system" >Link /a
and here is the function to it:
function openUrlInBlankBrowser()
{
navigator.app.loadUrl('http://www.google.com', { openExternal:true } );
}
Any Ideas? ... I think it can't be that much??
Thanks in advance,
mat
I've tried hundreds of ways how to open external Links with HTML5 and Phonegap Build ... It seems as if somethin is missing!
I've included this one:
script type="text/javascript" src="cordova.js" /script
And I tried this kind of links:
a href="#" onclick="window.open('http://www.nhl.com', '_blank', 'location=yes');">_blank /a
a href="#" onclick="window.open('http://www.nhl.com', '_system', 'location=yes');">_system /a
a href="#" onclick="window.open'http://www.nhl.com', '_self', 'location=yes');">_self /a
a href="#" onclick="openUrlInBlankBrowser();" target="_system" >Link /a
and here is the function to it:
function openUrlInBlankBrowser()
{
navigator.app.loadUrl('http://www.google.com', { openExternal:true } );
}
Any Ideas? ... I think it can't be that much??
Thanks in advance,
mat

