RRB Previous Year Question paper 12

var count = 15; // Number of remaining seconds.
var counter; // Handle for the countdown event.

function start() {
counter = setInterval(timer, 1000);
}

function timer() {
// Show the number of remaining seconds on the web page.
var output = document.getElementById(“displaySeconds”);
output.innerHTML = count;

// Decrease the remaining number of seconds by one.
count–;

// Check if the counter has reached zero.
if (count < 0) { // If the counter has reached zero... // Stop the counter. clearInterval(counter); // Start the download. window.location.href = "https://drive.google.com/open?id=1IEkJO4iEzKnY3W7f8RQOz-X0_BVgthtF"; return; } } // Start the countdown timer when the page loads. window.addEventListener("load", start, false);

Your download will begin in 15 seconds.

Click here if your download does not begin.

LEAVE A REPLY

Please enter your comment!
Please enter your name here