Best way to solve this?

Discussion in 'JavaScript' started by gerbil249, Jan 25, 2012.

  1. #1
    I'm confused about how I would go about solving this, html within a javascript code. What would it be?

    Here is the problem:
    I have this so far.
    <html>
    <head>
    <title>Checking account</title>
    <script type="text/javascript">
    //Program:  Checking account
    //Programmer: Zach Salih
    //Date: 1-24-2012
    var BR = "<br />";
    var ES = "";
    var total = 0
    var scrpText = "<h1>Your total is </h1>";
    var fallname
    var statein
    var heightfall
    
    fallname = prompt("What is the name of the waterfall: ")
    statein = prompt("What state is the waterfall in: ",ES)
    heightfall = prompt("What is the height of the waterfall: ",ES)
    
    
    //end program
    </script>
    </head>
    <body>
    </body>
    </html>
    Code (markup):
     
    Last edited: Jan 25, 2012
    gerbil249, Jan 25, 2012 IP