css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

A how-to for a countdown clock.


  1. cool. could make good use of template strings for the output: document.getElementById('bday').innerHTML = `${days}d ${hours}h ${minutes}m ${seconds}s`;

  2. Matt Smith @AllThingsSmitty on

    @dillonbheadley great suggestion, thanks!

  3. Always usefull, thanks!

    Happy Bithday 81d 7h 34m 16s in advance :)

  4. Is it possible to have colons among the numbers?

  5. Thank you! This countdown is very useful. But, when the time is reached the message is not shown.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.