natureboy76
Programmer
Can anyone help me with the next step? Total overwhelmed noob..... After a correct code has been entered, call a function using the code to determine the Plan Cost Per Month. The Plan Cost Per Month will be returned to the body. Here is what I have so far....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"<html xmlns=" xml:lang="en" lang="en">
<head>
<title>
</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en-us" />
<script type="text/javascript">
/* <![CDATA[ */
for (var i=1; i<2; i++) {
var ans = parseInt(prompt ("Enter a number - Code 1,2 or 3", ""));
if ((isNaN(ans)) || (ans == "") || (ans <1) || (ans >3)) {
alert ("You must enter a number 1, 2 or 3!! ");
i -- ;
}
}
/* ]]> */
</script>
</head>
<body>
<h1> <br /></h1>
<script type="text/javascript">
document.write("<p><h2>Health Plan</h2></p>");
document.write("<p><h5>.</h5></p>");
</script>
</body>
</html>
Reply With Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"<html xmlns=" xml:lang="en" lang="en">
<head>
<title>
</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en-us" />
<script type="text/javascript">
/* <![CDATA[ */
for (var i=1; i<2; i++) {
var ans = parseInt(prompt ("Enter a number - Code 1,2 or 3", ""));
if ((isNaN(ans)) || (ans == "") || (ans <1) || (ans >3)) {
alert ("You must enter a number 1, 2 or 3!! ");
i -- ;
}
}
/* ]]> */
</script>
</head>
<body>
<h1> <br /></h1>
<script type="text/javascript">
document.write("<p><h2>Health Plan</h2></p>");
document.write("<p><h5>.</h5></p>");
</script>
</body>
</html>
Reply With Quote