This question already has an answer here:
I am trying get a counter to work in PHP so it basically counts '5' then '4' and so on till 0. It will redirect to a different page. I was just wondering how this can be done in PHP? if possible, if not what it would be in javascript?
</div>
Take a look at this. Other than that … you should really try to do some original research yourself and ask meaningful questions if you are stuck by illustrating your problem and showing us your current solution/approach.
The following code will redirect after 5 seconds:
<script>
setTimeout(function () {
window.location.href = "newpage.html";
}, 5000); //seconds
</script>
here's a example of count down timer: link