Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Embed youtube player iframe external link opens in webview

$
0
0

@iwan_uschka wrote:

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).

This link can't be modified with JavaScript from outside the iframe, because cross domain security issues. So i can't update target attribute from "blank" to "system".

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 sandbox attribute in the iframe is not an option because it breaks youtube player completely.

Thanks and cheers

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>