Ionic: External link in iframe opens in webview (embed youtube player)
<p>In my ionic (v1.2.4) app there is an embedded youtube player with a link "watch on youtube". If a user clicks this link, youtube website is opened in web view of cordova. It destroys current state of my app. I want to open that link in system's web browser (cordova in app browser plugin).</p>

<p>Same with any link in any iframe (vimeo, soundcloud...)</p>

<p>This link can't be modified with JS from outside the iframe, because cross domain security issues. So i can't update target attribute from <code>_blank</code> to <code>_system</code>.</p>

<p>Show a dialog <code>onbeforeunload</code> is not really an option because it looks ugly :)</p>

<p>Is there a possibility to avoid a page being loaded into the same webview or in the system's web browser?
Breaking links by using iframe's <code>sandbox</code> attribute is not an option because it breaks youtube player completely.</p>

<p>Thanks and cheers</p>

<p>ps: i asked this question <a href="https://forum.ionicframework.com/t/external-link-in-iframe-opens-in-webview-embed-youtube-player/46074" rel="nofollow">here</a> but couldn't get any helpful information</p>