<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
/*
David Dees
DE2004303
CST 140
Assignment 2
*/
</script>
<script type="text/javascript" src="third.js"></script>
</body>
</html>

 

/*
David Dees
DE2004303
CST 140
Assignment 2
*/
/*
Below is the function i used
*/
function displayAlert(a,b,c,d,e,f,g,h,i,j,k,l) {
     document.open()
     window.alert(a);
     window.alert(b);
     window.alert(c);
     window.alert(d);
     window.alert(e);
     window.alert(f);
     window.alert(g);
     window.alert(h);
     window.alert(i);
     window.alert(j);
     window.alert(k);
     window.alert(l);
   }
 
 displayAlert("Ten", "Nine", "Eight", "Seven", "Six", "Five", "Four", "Three", "Two", "One", "Ignition Start!", "We Have Liftoff!");
 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 />"+"We Have Liftoff!");
 document.close()
 
  
/*
Input:  Message text or data to be displayed in an alert
Output:  The message is displayed in alert dialog box.
Descripition:  The displayAlert() function displays an alert
               It uses the parameter variable as an argument to pass to the window.alert() function.
*/


    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      third_answer.zip