-
-
Save shazron/4694032 to your computer and use it in GitHub Desktop.
// warning, jQuery code below | |
$(document).ready(function() { | |
var $a = $("a"); | |
$a.click(function(x) { | |
x.preventDefault(); | |
var url = $(this).attr('href'); | |
launchUrl(url); // where launchUrl is your function that calls window.open, etc | |
}); | |
}); |
but this is not enough for dynamic content, content inside iframes, etc
@geogir I'm experiencing the same issue. were you able to find a work-around?
Dumb question, but... how exactly do I call this into my Ionic project? I get that I should create the js file, reference it in index.html, but any other code I need to add to the above to make it update all my links to open in the inAppBrowser?
Thanks!
ditto -> I have the same problem. I want to open dynamically generated links in an iframe (with code I do not control) in the inAppBrowser.
Yep I have this problem too... the little youtube logo in embedded youtube videos open in the current webview in my app. You have to quit the app to get back. Terrible experience.
Hey @benmcmaster, any luck resolving this?
Is it possible to make anchor tags in iframe also opens in inappbrowser
I do something like this to handle external links only https://gist.github.com/JonathanHindi/6301111