我可以通过网页以编程方式创建 Chrome 应用程序快捷方式吗?
我考虑过使用 Chrome 和 HTML5 本地存储来创建一个有用的应用程序并出售它。然而,我认为我会遇到的问题是将其安装到计算机上的交付机制。假设该应用程序是 wikipedia.com(尽管不是)。可以使用 Chrome 手动转到那里,然后选择扳手图标、工具、创建应用程序快捷方式,并为应用程序创建桌面和应用程序菜单图标。
好的,很好,但是有没有一种方法可以让我编写网页链接或表单按钮,以便它为我完成此操作?换句话说,单击按钮或链接就会显示“创建应用程序快捷方式”表单。我希望 Google Chrome 上有一种鲜为人知的方法来使用 HTML 或 Javascript 来触发显示该表单。
对于那些没有 Chrome 的人,我可以检测到这一点,并为他们提供一个按钮,让他们点击该按钮即可向他们发送电子邮件。在电子邮件中,它将向他们提供安装 Chrome 的说明,然后提供另一个链接,以便他们可以在 Chrome 中访问此页面,以获得显示“创建应用程序快捷方式”表单的按钮。
I've thought about using Chrome and HTML5 local storage to create a useful app and sell it. The problem I think I would have, however, is the delivery mechanism to get this installed on one's computer. Let's say the app was wikipedia.com (although it isn't). Manually one can go there with Chrome, then choose the wrench icon, Tools, Create Application Shortcuts, and make a desktop and application menu icon for the app.
Okay, fine, but is there a way I can compose a web page link or form button such that it does this for me? In other words, one clicks a button or link and it shows the Create Application Shortcuts form. I am hoping that there's this little-known way on Google Chrome to use either HTML or Javascript to trigger showing that form.
As for those who don't have Chrome, I can detect that and give them a button they click that emails them. In the email, it will give them instructions for installing Chrome and then another link so that they can visit this page in Chrome in order to get the button that shows the Create Application Shortcuts form.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,在提供更好的答案之前,这是一种使用 Chrome 部署桌面应用程序的技术,采用手动方式,并且无需在 Chrome 商店中注册:
For now, until a better answer can be provided, this is sort of the technique for deploying a desktop app with Chrome, the manual way, and without having to register in the Chrome Store: