Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This countdown script prints directly to the page, displaying the time left in minutes and seconds. The time duration can be set in the script. The timer will automatically stop when the time reaches 00 minutes and 00 seconds.


Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: countdownTimer


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

6. From: jon
04/15/2007 01:16:17

this DOESNT work in Firefox 2.0x....

7. From: Lee (Admin)
05/25/2007 11:31:39

It seems to work fine for me using FF 2.0.0.3.

5. From: Travis
02/23/2007 12:50:47

I agree with Fahmiadini, that it is not possible to ctrl-z or undo changes in a text area when using this script, however the timer works fine for me in both firefox as well as IE.

4. From: Fahmiadini
02/13/2007 23:44:13

i cannot undo (ctrl-z) in my form element like in textbox if i insert this code.. i think this cause by set into innerHTML.. i try to set the value also cannot work.. And one more thing is, it works on firefox but not in IE.. anyone had solution for this issue?

3. From: Marvin
12/05/2006 17:54:32

Hi

I'd like to try something similar to Donna...

is it possible to automatically send a preformatted email on expiry of timer?

Thanks


2. From: Brian Nowell
12/02/2006 01:06:57

Reading Donna Murray's comment.
I think that I can visualise associating this with an event handling routine such that onXXXXXX a URL is called.

Could be embedded in a "Beat the Buzzer" scenario. Yes?


1. From: Donna Murray
11/27/2006 10:56:00

Can this code be used for testing so the page submits automatically when the time is up?


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.