I try to create button which starts an alert after a click event. Something like that :
Apache
Here is a jQuery example
html
<a href="#" class="start-button">EXECUTE</a>
jquery
$(".start-button").click(function (e) { //note that 'onclick="HandleExec();return false;" doesnt work
e.preventDefault();
// here you can handle the click code you wanted
});
make sure that you call event.preventDefault(); so it doesn't try to go to the href in the html tag. That will just reload the cordova app in this case.