Define the alert function

Assignment Help Programming Languages
Reference no: EM13935525

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/> ");

Reference no: EM13935525

Questions Cloud

Software designed to damage or perform undesirable action : Background Malware (short for malicious software) refers to software designed to damage or perform undesirable actions on a computer system. Malware has become an increasingly profitable industry for business savvy hackers. Malware has also become..
Describe how eukaryotic cells are similar to production line : Describe two similarities and two differences between eukaryotic cells and prokaryotic cells. Why do you think eukaryotic cells developed? Describe how eukaryotic cells are similar to a production line.
Should assauer consider glovanskia for investment : Assauer is not willing to consider Glovanskia for investment if the country risk rating is below 4.0. Should Assauer consider Glovanskia for investment?
How should buxton assess the risk : The expected return is 20% with a standard deviation due to currency movements of 5%. However, ten years ago Country Y's currency fell by 40%. How should Buxton assess this risk?
Define the alert function : 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.
Strategic human resource management practices : Engaging and motivating employees is at the centre of Strategic Human Resource Management (SHRM) practices. It is therefore important to identify the organisational practices that can be used to foster the cognitive, emotional and behavioural qual..
Calculate the expected value of projects net present value : Calculate the expected value of the project's net present value (NPV) and determine the probability that the project will have a negative NPV.
Explain code of dna : Briefly describe the debate between the theory of spontaneous generation and the theory of biogenesis. Explain how Louis Pasteur's experiment with the S-neck flasks in the 1800s resolved this debate. Include a detailed description of Pasteur's exp..
How country risk affects npv : How country risk affects NPV. Explain how the capital budgeting analysis in the previous question would need to be adjusted if there were three possible outcomes for the dollar along with the possible outcomes.

Reviews

Write a Review

Programming Languages Questions & Answers

  Do we require to format our program output does formatting

do we need to format our program output? does formatting only apply to numeric values? what about percent values and

  Write script which outputs xhtml text

Write a script which outputs XHTML text that displays in the XHTML document a rectangle, an oval, an arrow, and a diamond using asterisks (*).

  Write program which permits user to enter first name

Write the program which permits the user to enter first names of candidates in university election and number of votes received by each candidate.

  Develop html5 pages themed on manchester

Design and develop three HTML5 pages themed on Manchester. The pages should be optimised for delivery on a tablet.

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

  Design the logic for application for company

Design logic for an application for company which wants a report containing a breakdown of payroll by department. Input includes each employee's last name, first name, department number.

  Calculate resistance value

Develop a PROLOG program that prompts the user for the colors of Band 1, Band 2, Band 3, and Band 4 and then displays the resistance in Kilo-ohms.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Create-implement simple class using static variables-methods

This third programming project is intended to demonstrate your knowledge of the following: create and implement a simple class. properly use static variables, methods and constants

  Neeed to prepare an cgi script that send mass emails

Neeed to prepare an CGI Script that send mass emails - Input fields Sender Name: Sender Email: Subject: Message: choose, by default HTML Emails and send button the script should print the progress of sending.

  Write a program that explores the seating patterns

Write a program that explores the seating patterns related to course performance by using an array of student scores. The program should do the following: Draw a seating chart of the classroom

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd