I've started a count down timer and i want to submit the form when the counter reaches zero.

How can i do that ?

Like=> document.formname.submit();

or something else.