I have an application that runs on mobile compiled in PG build Cli 5.2.0 in this app I have some external links to open. I implemented the inappbrowser to be able to close the open browser and return to the app. however there are several different links. Is there any way I can do a function without the specific link and just specify on the button when I'm calling the function? so I do not have to do a function for each different link. Ex: what I'm using.
<head>
<!-- o script esta rodando no cabeçalho -->
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
function face() {
var ref = window.open('http://facebook.com', '_blank', 'location=yes');
}
</script>
<body>
The button stays in the body of the app and needs to have several buttons of that with different links ...
<li><button onclick="face()">Pagina do face</button></li>