Many foreign sites in the download has this effect, click on the download to enter a guide page, there is a countdown "also xxx seconds after the start of downloading", the countdown ended without opening a new page, the browser has not turned to other pages, but directly to start the download, this is how to do.
Reply content:
Many foreign sites in the download has this effect, click on the download to enter a guide page, there is a countdown "also xxx seconds after the start of downloading", the countdown ended without opening a new page, the browser has not turned to other pages, but directly to start the download, this is how to do.
It's not clear how SourceForge actually works, but the same effect can be achieved with javascript:
The countdown can be done by setTimeInterval
means of a method that modifies the number of seconds remaining per second.
There are many ways to implement the download, including:
- @greatghoul the construction
meta
label mentioned
- The simplest:
window.location.assign(url);
- Constructs a hidden
iframe
and sets itssrc
Just add a meta
label.