I put the following code in the header of my site and I can use it to redirect buttons to a specific address.
<script>
let redirect_Page = (ele) => {
ele.disabled = true;
let iCnt = 10; // for time in seconds.
let iTimerId = setInterval(function () {
document.getElementById ('msg').innerHTML = 'Redirect ' + iCnt + ' Second';
iCnt--; // decrease counter by 1.
if (iCnt === 0) {
// now, redirect page.
location.href = document.getElementById("url_free_dl").href;
clearInterval(iTimerId); // clear time interval.
}
}, 1000);
}
But I do not know how to use it on more links per page?