Explore BrainMass
Share

Dialog and Loop in JavaScript

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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<br/> Nine<br/> Eight<br/> Seven<br/> Six<br/> Five<br/> Four<br/> Three<br/> Two<br/> One<br/> Ignition Start<br/> Liftoff<br/> We have lift off!<br/> ");

© BrainMass Inc. brainmass.com October 25, 2018, 9:50 am ad1c9bdddf
https://brainmass.com/computer-science/javascript/dialog-loop-javascript-588795

Solution Preview

Hello Student,

If I understand you correctly, this should be the direction you want to go (also attached as a ...

Solution Summary

Working example of a simple Web page (HTML) that iterates through JavaScript displayed messages stepped through by user interaction with a dialog. Attached as .html.

$2.19
See Also This Related BrainMass Solution

Define a marketing plan, linking action plans to service delivery and balancing capacity and demand.

I need some assistance with these. I have a some information, but would like more insight:

1.

? define a marketing plan, linking action plans to service delivery and balancing capacity and demand.

? define a continuous improvement plan that indicates how you will measure outcomes, identify service problems, and eliminate gaps in performance.

? Identify how the action plans are linked to the organizational vision and mission and the service strategy.

? Summarize your overall plan, indicating its current limitations and the implications of your plan for the healthcare industry as a whole.

2. List what constitutes "quality" in assessing and reducing risk.

View Full Posting Details