The script presented in this page is a JavaScript Countdown Timer 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.
Years: 0
Months: 0
Days: 0
Hours: 0
Minutes: 0
Seconds: 0

Until: ...



- Example Countdown Timer until a specified Date-Time defined in page:
Years: 0
Months: 0
Days: 0
Hours: 0
Minutes: 0
Seconds: 0

Until: 12/31/2018 - 18:33:00

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute indicates that an input field must be filled out before submitting?
required="required" autofocus="autofocus" placeholder="text"
<input type="text" name="name1" required="required" />
Which CSS method increases or decreases the size of the HTML element (including its content)?
translate() scale() skew()
#some_id:hover {
  transform: scale(2, 1.5);
  -ms-transform: scale(2, 1.5);    /* IE 9 */
  -moz-transform: scale(2, 1.5);   /* Firefox */
}
Click on the Date object method that returns the day of the month.
setDate() getMonth() getDate()
var rightnow = new Date();
var day = rightnow.getDate();
alert(day);
Which function is used to upload a file on server?
is_file() move_uploaded_file() fopen()
if(move_uploaded_file($_FILES["field_name"]["tmp_name"], "dir/file_name")) {
  echo "The file succesfully uploaded";
}
Countdown Timer until specified Date-Time

Last accessed pages

  1. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (13499)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (16008)
  3. Multiple Select Dropdown List with JavaScript (2929)
  4. Get Lower, Higher and Closest Number in JavaScript (217)
  5. jQuery UI draggable - Drag elements (5128)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (16409)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (16008)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (15324)
  4. Ajax-PHP Chat Script (13545)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (13499)