如何在WebView中单击打开WebView而不是默认浏览器WP8.1 RT [英] How to WebView click open within WebView not a default browser WP8.1 RT

查看:91
本文介绍了如何在WebView中单击打开WebView而不是默认浏览器WP8.1 RT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Phone 8.1 RT上使用WebView实现浏览器时出现问题。

I have an issue when implement Browser using WebView on Windows Phone 8.1 RT.

当我点击广告链接或Facebook时比如按钮,它会在设备的默认浏览器中打开链接,而不是在我的网页浏览中。

When I click on an Ads link or a Facebook like button, it open the link in default browser of device, not in my webview.

我已调试并发现其中一些链接嵌入在< iframe>中标签。

I have debugged and found that, some of those links are embedded in <iframe> tag.

你能否提出解决这个问题的建议?

Could you give your advice to resolve this issue?




推荐答案

Hi Khiem - 这是浏览器的默认行为。  您必须使用javascript覆盖HTML和iframe中的所有链接,以便在此webview中打开它们。
Hi Khiem - this is the default behavior of browsers.  You would have to override all of the links inside the HTML and the iframes using javascript to get them to open inside this webview.


这篇关于如何在WebView中单击打开WebView而不是默认浏览器WP8.1 RT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆