如何使用javascript安装应用程序? [英] How do I use javascript to install an app?
问题描述
如何强制HTML将文件从我的服务器下载到Android设备上预先指定的位置?我不希望提示或打扰用户,只是在下载启动之前预先指定下载位置。这可以从一个独立的网页上做到吗?
我尝试了什么:
我曾尝试用HTML或Javascript链接到该文件,但我似乎无法弄清楚如何告诉我的页面将文件保存到哪里。
感谢您的任何反馈,谢谢!
How do I force my HTML to download a file from my server, to a pre-specified location on an android device? I do not want the user to be prompted or bothered, just to pre-specify the download location before the download is initiated. Is this possible to do from a stand-alone webpage?
What I have tried:
Ive tried linking to the file in HTML or Javascript, but I cant seem to figure out how to tell my page where to save the file to.
Id appreciate any feedback, thanks!
推荐答案
您不能。
这是设计的,如果您考虑一下你会明白为什么。如果你能做到,那么恶意网站也是如此:这根本不是一个好主意!
You can't.
This is by design, and if you think about it for a moment you will see why. If you could do it, so could malicious sites: and that would not be a good idea at all!
不,你没有。
NO, you don't.
如何强制我的HTML从我的服务器下载文件到Android设备上预先指定的位置?我不希望用户被提示或打扰,
How do I force my HTML to download a file from my server, to a pre-specified location on an android device? I do not want the user to be prompted or bothered,
恶意软件的Dream功能。
Dream feature for malwares.
这篇关于如何使用javascript安装应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!