How do you make a countdown in JS? like it counts down 5 4 3 2 1 0 in a form field. it's for a page redirect. so when the page loads it says:
you will be redirected in "number" seconds

i'm stumped so i hope somebody can help!