Implementation of download function in WebApp

Source: Internet
Author: User

A few days ago to the original Web page app download list to add a button download (click the button, the page app download each) for stress testing.

Starting with the Loop list plus window.open (URL), the APK's resource browser will automatically jump out of the download page and ask if it is downloaded. Later on the phone up and down a few browsers, window.open is banned really powerful, in addition to QQ browser, the rest are directly banned or let users manually allow.

Then saw a method, JS dynamically create an IFRAME and assign SRC, so that the browser load resource discovery resource is a ZIP package will also default out of the download prompt, not I forced. However, the problem is that some browsers jump out of a download prompt and then no more. For a single download of multiple implementations or not, so I think again ah think.

Then, with the event simulation, click on one button to download the time, simulate clicking on all the individual download buttons. This will not be with me by hand in a single click button thump thump thump point a lot of download effect, so there is no problem. Then try it down, this, all the browsers can only download one, and then stop.

is not the simulation of the event itself, simulated the click on the ordinary elements, link clicks are consistent with my expected effect, I do not know what the problem is the download. But download this is the use of the browser default features, so different browser's mind still need my pondering.

Implementation of download function in WebApp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.