I have this file and I'm trying to Modify the display_alert() function to also display a line of the countdown on the web page.
i don't know 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. I need it to write something after each alert. Can someone e please help? See below:
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!
");