@soulmecca wrote:
Hi, I'm trying to open external links in google map with Cordova inappbrowser.
I've tried with this jQuery way.
$(document).on("click", "a[href^=http], a[href^=https]", function(e) {
e.preventDefault();
var $this = $(this);
var target = $this.data("inAppBrowser") || "_blank";
window.open($this.attr("href"), target, "location=no");
});However, I found that it cannot deal with every case.
It works when I click Google trade mark but not works with the link 'View on Google maps'.Has anyone gone through this problem?
Thanks in advance.
Posts: 1
Participants: 1