In this article we are going to design a JavaScript based Digital Clock. Here we are see use a HTML Form to show our Digital Clock. Take a look below on piece of code Here we have defined HTML form. And use input and assign a class frm to it. Class frm will take care of representation of clock.