Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用javascript或html打开移动chrome浏览器_Javascript_Html_Google Chrome_Android Intent_Deeplink - Fatal编程技术网

如何使用javascript或html打开移动chrome浏览器

如何使用javascript或html打开移动chrome浏览器,javascript,html,google-chrome,android-intent,deeplink,Javascript,Html,Google Chrome,Android Intent,Deeplink,我有两个问题 ///我想要这个// 我想使用javascript或html在其他android移动网络应用程序(如naver、firefox等)上打开带有url的chrome浏览器 (例如) 若用户单击移动web应用程序上的MysiteButton,则打开android设备移动chrome浏览器并重定向url(在chrome上) 我该怎么办 ///问题列表//// 我发现我应该使用deeplink或intent,但我不知道android mobile chromebrower的intent ur

我有两个问题

///我想要这个//

我想使用javascript或html在其他android移动网络应用程序(如naver、firefox等)上打开带有url的chrome浏览器

(例如) 若用户单击移动web应用程序上的MysiteButton,则打开android设备移动chrome浏览器并重定向url(在chrome上)

我该怎么办

///问题列表////

  • 我发现我应该使用deeplink或intent,但我不知道android mobile chromebrower的intent url或Scheme url。 安卓移动chromebrower的意向url是什么。如何得到。 (我使用了window.location.href=”market://detail?id=com.android.chrome“但不起作用)

  • 当我使用deeplink或intent时,如何在打开chrome的同时重定向chrome上的url


  • 您可以尝试以下内容,这对我很有用:

    "googlechrome://navigate?url=" + url
    
    i.e. window.open("googlechrome://navigate?url=" + url,"_system"); // here you can try with _system or _blank as per your requirement
    

    重复问题,请检查此感谢答案。但也许是不同的。我希望使用javascript或html(如果单击我的主页按钮)从其他浏览器(例如firebox浏览器,而不是我的构建应用程序)打开anroid chrome浏览器。在浏览器ie Firefox/chrome中运行的Web应用程序是沙盒,不与系统交互。例如,无法通过浏览器打开相机。据我所知,打开chrome的唯一方法是使用默认浏览器。谢谢!我决定另一个way@minsulee请告诉我们你是怎么做的。我需要它来帮你解决一个错误。不允许加载本地资源:googlechrome://navigate?url=www.myurl.com