The script presented in this page is a
that can start a countdown to a time defined in forms.
It can take a given time for the end of a countdown from form inputs that define the year, month, day, hour, minute and second.
The object can also take the end time from static HTML page elements with identifiers that start with a given prefix.
The object can start the countdown and keep updating page elements that show the remaining time to the end.
When the Countdown Timer reaches to 0, it is executed a certain function defined in script. In that function you can add a code to be executed when countdown timer reaches to 0.
It can be added multiple countdowns for diferent date-times in the same page. More details you can find in the "readme.html" file in the archive with this script.
• To Download this script, click: Countdown Timer until specified Date-Time
- Example Countdown Timer until a specified Date-Time from form
- Example Countdown Timer until a specified Date-Time defined in page
Daily Test with Code Example
Which HTML5 tag can be used to embed an external application (SWF, PDF) in web page? <mark> <embed> <canvas>
<embed src="flash_game.swf" width="450" height="350" />
Which CSS pseudo-element adds a special style to the first line of a text? :first-letter :before :first-line
Click on the window object property which gets or sets the URL of current page. window.location window.self window.status
var url = window.location;
Indicate the PHP function used to get the contents of a file or page and store it into a string. fopen() file_put_contents() file_get_contents()
$homepage = file_get_contents("http://coursesweb.net/");