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