Quiero abrir un sitio web en InappBrowser, pero el usuario debe permanecer en este sitio. Si el usuario hace clic en un enlace o es redirigido a otro sitio, el enlace no se cargará.
var url="https://facebook.com" var site=cordova.InAppBrowser.open(url,"_blank","location=yes") site.addEventListener("loadstart",function(evt){ if(evt.url.indexOf("youtube.com") > 1){ site.stopLoad() //this is the code supposed to stop the loading } else { //yes can load the link } })