是否有可能触发份额菜单上的智能手机(通过HTML / JS)? [英] Is it possible to trigger share menu on smartphones (via HTML/JS)?

查看:92
本文介绍了是否有可能触发份额菜单上的智能手机(通过HTML / JS)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能存在通过触发在智能手机上的本地浏览器的共享功能HTML或JavaScript?

Is there an existing possibility to trigger the share functionality in local browsers on smartphones via HTML or JavaScript?

有很多服务,提供一个分享按钮。但是,当我如想在Facebook上分享了一个网站,我需要登录到Facebook在我目前使用的浏览器。

Of course there are many services which provide a share button. But when I e.g. want to share a website on facebook, I need to be logged in to facebook in the browser I am currently using.

几乎所有浏览器都得到了一个属于自己的那份功能打造,这将触发系统菜单,选择其中的应用程序要使用分享到:

Almost all browsers got an own share functionality build in, which triggers a system menu to choose which app you want to use to share:

这个问题是关于:如何触发这个菜单

This question is about: How to trigger this menu?

我知道这是可能触发一个电话与指定preFIX的链接href属性,如电话:致电第一。也许对于此共享菜单这样的快捷方式也存在?或者一些JavaScript code?或者一个完全不同的方式该怎么办呢?

I know it is possible to trigger a phone call with a specified prefix in href attribute of links, like tel: or callto:. Maybe such a shortcut for this share menu is also existing? Or some javascript code? Or a totally different way how to do it?

在此先感谢。

推荐答案

有一个在当前浏览器/手机操作系统就我所知,没有实现。由于这个问题引起我的兴趣 - 谷歌搜索上透露像这样的问题的工作

There is no implementation in current browser/mobile OS to my knowledge. Since the question interested me - a google search revealed work on issues like this one.

HTTPS://dvcs.w3。组织/ HG / WEB-意图/原始文件/尖/规格/ Overview.html

http://webintents.org/

对不起 - 我不知道的workround

Sorry - I do not known a workround.

这篇关于是否有可能触发份额菜单上的智能手机(通过HTML / JS)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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