- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how can I open a link with the default browser installed, I installed inappbrowser, I'm using target=_blank tag but does not work, how can I fix this? Thanks in advance. This is my code:
<!DOCTYPE html>
<html>
<head>
<title>Eurokom Europe Direct</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=no">
<style>
/* following three (cascaded) are equivalent to above three meta viewport statements */
/* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html */
/* see http://dev.w3.org/csswg/css-device-adapt/ */
@-ms-viewport { width: 100vw ; min-zoom: 100% ; zoom: 100% ; } @viewport { width: 100vw ; min-zoom: 100% zoom: 100% ; }
@-ms-viewport { user-zoom: fixed ; min-zoom: 100% ; } @viewport { user-zoom: fixed ; min-zoom: 100% ; }
/*@-ms-viewport { user-zoom: zoom ; min-zoom: 100% ; max-zoom: 200% ; } @viewport { user-zoom: zoom ; min-zoom: 100% ; max-zoom: 200% ; }*/
</style>
<link href="files/stile.css" rel="stylesheet" type="text/css">
<script src="cordova.js" id="xdkJScordova_"></script>
<script src="js/app.js"></script> <!-- for your event code, see README and file comments for details -->
<script src="js/init-app.js"></script> <!-- for your init code, see README and file comments for details -->
<script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see file for details -->
</head>
<body>
<div id="container">
<div id="header" style="text-align:center" >
<a href="index.html" ><img style="width: 160px; height: 79px;" class="c1" alt="logo"
src="files/header1.png"></a><a href="menu.html" ><img style="width: 75px; height: 79px;" alt="logo"
src="files/header2.png"></a><a href="opportunita.html" ><img style="width: 75px; height: 79px;" alt="logo"
src="files/header3.png"></a>
<ul id="menu" style="text-align:center" >
<a href="https://www.facebook.com/eurokom.europedirect" TARGET="_blank"><img style="width: 74px; height: 30px;" alt="logo" src="files/fb_logo.png"></a>
<a href="https://twitter.com/CaleEuropaEdic" TARGET="_blank"><img style="width: 74px; height: 30px;" alt="logo" src="files/tw_logo.png"></a>
<a href="https://www.flickr.com/photos/130616199@N05/" TARGET="_blank"><img style="width: 74px; height: 30px;" alt="logo" src="files/fr_logo.png"></a>
<a href="https://www.youtube.com/channel/UCu1UXsIdWRuB5HS8gvrLh9Q" TARGET="_blank"><img style="width: 74px; height: 30px;" alt="logo" src="files/yt_logo.png"></a>
</ul>
</div>
<div id="content2" style="text-align:center">
<br>BENVENUTO NELLA APP DI EUROKOM. <br> Ora sarà ancora più semplice conoscerci e scoprire le oppurtunità messe a disposizione dalla Unione Europea.<br>
Con la nostra App avrai un rapido accesso alle risorse che l'Unione Europea mette a vostra disposizione, potrai inoltre contattarci e raggiungerci in maniera rapida e veloce, ti bastano pochi tap sul tuo smartphone, buona scoperta!!!<br>
<img src="files/commeu.png" width="290" height="206" alt=""/><br><br><br><br><br>
</div>
</div>
<div id="footer" style="text-align:center" >
<a href="info.html" ><img style="width: 74px; height: 40px;" alt="logo" src="files/info.png"></a>
<a href="mailto:associazioneeurokom@tiscali.it" ><img style="width: 75px; height: 40px;" alt="logo" src="files/mail.png"></a>
<a href="http://www.eurokomonline.eu" TARGET="_blank"><img style="width: 74px; height: 40px;" alt="logo" src="files/web.png"></a>
<a href="tel:+3909641901574" ><img style="width: 74px; height: 40px;" alt="logo" src="files/chiama.png"></a>
</div>
</body>
</html>
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seu a function like this:
function funAbreURL(cURL) { cordova.InAppBrowser.open(cURL, '_system', 'location=yes'); return false; // Prevent execution of the default onClick handler }
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can refer this existing sample https://github.com/gomobile/sample-in-app-browser/blob/master/docs/README.md
Let us know if you are still having issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seu a function like this:
function funAbreURL(cURL) { cordova.InAppBrowser.open(cURL, '_system', 'location=yes'); return false; // Prevent execution of the default onClick handler }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So where is the issue?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page