You may have visited some websites that have certain controls in place such as delaying the enabling of buttons and links on the page, or requiring that a captcha code be submitted prior to enabling components on the page.

This is generally done to ensure that web spiders and bots that access your page, do not arbitrarily invoke the target components on the page. Another example may be that you want to present certain content to your user, an advert, or a video presentation prior to enable additional content.

In this tutorial, we are going to cover how to build a countdown timer that can be used to delay a button from being enabled on the page. This can be an effective way to ensure that your visitor is a human and also require that a delay occurs prior to serving the visitor the additional content. This additional content could be a video, a download link, or some other resource on your website.

The HTML

We will start with a simple HTML example. All we need for this example is a simple