onDeviceReady: function() {
var ref = cordova.InAppBrowser.open('http://site.ru', '_blank', 'location=no');
ref.addEventListener('loadstart', function(event) {
ref.executeScript({ code: "window.isCordovaApp=true;" });
});
};
function getImage() {
anyCordovaPlugin();
alert('aby action');
}
<button onclick="getImage();">Upload a Photo</button>