Anyway I don't know exactly what I should be using to get what I want. My main plan was to simply prompt for your name.. then either prompt or select your age group then something else and that's it. Now I've tried many many things like arrays etc and can't get anything to work so I tried to add two functions.. both to prompt, and dunno if this is even allowed haha.. but when I do it skips my name function and goes straight to age.. Anyone know why this is? Also if I could get some tips on what I should be using to accomplish this please let me know. thanks guys and if you don't quite understand what I'm asking let me know.
<html>
<head>
<script type="text/javascript">
function show_prompt()
{
var name=prompt("Please Enter Your Name","Enter Name");
if (name!=null && name!="")
{
document.write("Hello " + name + " Please Continue");
}
}
function show_prompt()
{
var age=prompt("Please Enter Your Age","");
if (age>1)
{
document.write(".. Moving along.");
}
}
</script>
</head>
<body>
<p>Please Click Med Test to Begin</p>
<input type="button" onclick="show_prompt()" value="Med Test" />
</body>
</html>


Sign In
Create Account


Back to top









