有没有一种方法可以预先检测基于Web的Kiosk模式URL? [英] Is there a way to detect the web-based Kiosk mode URL in advance?

查看:74
本文介绍了有没有一种方法可以预先检测基于Web的Kiosk模式URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用iframe的chrome信息亭上有一个网站,其中我正在打开多个外部网站.每个站点都有与target ="_ blank"的链接.我无法控制这些外部链接.我只想在iframe中打开所有这些外部链接,或者我需要为那些target = _blank链接发布一些消息.到目前为止,我已经搜索过,发现无法完成.因此,我遇到了一个解决方案,使这些站点启用了自助服务亭,并检测了自助服务亭URL并在自助服务亭中将其打开.
通过启用Kiosk的外部站点,我们将运行脚本以检查所有target = _blank并将其替换为外部站点.这样,它不会对这些网址产生任何影响,但会在信息亭上打开.

现在,我有一个具有两种功能的URL.一种是在普通浏览器模式下打开,另一种是在信息亭模式下打开.我需要检测信息亭模式网址,然后将其打开到信息亭中.
在Kiosk中,我有很多URL,我想检测Kiosk模式的URL并打开这些URL,而不是常规模式.
有什么方法可以检测Kiosk模式的URL并打开它吗?
任何建议将不胜感激.

I have a site on kiosk on chrome using iframe in which I am opening number of external sites. And each of the sites has their own links with target="_blank". I have no control on those external links. I want to open all those external links inside iframe only or I would need to publish some message for those target=_blank links.I have searched so far and found it that it can''t be done. So, I come across the solution to make those sites as kiosk enabled and detect the kiosk URL and open them in kiosk.
By having Kiosk enabled external sites, we will run a script to check all the target=_blank and replace them on external sites. In that way it won''t have any impact for those URLs but it will open on Kiosk.

Now, I have one URL with two functionality. One is opening in a normal browser mode and another is to open in a Kiosk mode. I need to detect the kiosk mode URL and open that into Kiosk.
In Kiosk I have many URL and I would like to detect the Kiosk mode URL and open those instead of regular mode.
Is there any way to detect the Kiosk mode URL and open the same?
Any suggestion would be greatly appreciated.
Thanks!!

推荐答案

您可以通过传递parameter来区分Kiosk modenormal browser mode.这样您就可以使用该参数检查条件,是Kiosk mode还是normal browser mode.



谢谢
灰烬
You can differentiate Kiosk mode and normal browser mode by passing a parameter. so that you can check through a condition using that parameter, whether it is for Kiosk mode or normal browser mode.



Thanks
Ashish


这篇关于有没有一种方法可以预先检测基于Web的Kiosk模式URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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