Prevent kiosk mode webview link from opening new tab

懵懂的女人 提交于 2019-12-12 03:05:37

问题


I've created a chrome app that opens in kiosk mode, inside my chrome app i have a webview which is similar to an iframe except it works for chrome apps. On the website inside the webview there is a link that tries to open in a new tab, and fails.. At the moment it just does nothing when the button is clicked.

Is there a way to make all links inside the webview not open in new tabs? Or is there any other work around that you can think of?

I firebugged the link and this is what it says (i was expecting _blank but..):

<a class="js-tablink" href="/foh" target="FOH">

                 //link stuff
</a> 

来源:https://stackoverflow.com/questions/40848437/prevent-kiosk-mode-webview-link-from-opening-new-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!