The problem I am having is that when ever I use a regular alert and I make the name alert come next, it doesn’t. It skips over it and goes to the next alert. And at the end it says the name. How can I fix it?
[CODE]<script language=”Javascript”>
<!–
alert (“Alert”)
//–>
</script>
<script language=”Javascript”>
<!–
alert (“Alert”)
//–>
</script>
<body>
<BODY
onLoad=”testIt()”>
</body>
<head>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function testIt() {
Response = “”;
while ((Response == “”) || (Response == “”)){
Response=prompt (“What’s your name?”, “”);
}
if (Response != null)
alert (“Hello, ” + Response + “!”);
}
// End –>
</SCRIPT>
</head>
<script language=”Javascript”>
<!–
alert (“Alert”)
//–>
</script>
<script language=”Javascript”>
<!–
alert (“Alert”)
//–>
</script>