Display a line of the countdown on the web page


Discuss the below:

Q: Modify the display_alert() function to also display a line of the countdown on the web page. How to add the function that calls the document.write() function so that it can pass the parameter variable as an argument to the document.write() function

function display_alert (message){
window.alert(message); //
}
for (var count=1; count<14; count++) {

display_alert("Click ok to continue with the countdown.");
}
document.write("Ten
Nine
Eight
Seven
Six
Five
Four
Three
Two
One
Ignition Start
Liftoff
We have lift off!
");

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Display a line of the countdown on the web page
Reference No:- TGS01938150

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)