If any one is good with JS i need some help. This is my code:
The problem is with this:
once i enter my name it should continue onto this line:
But it doesn't the script ends, any ideas?
And for any of you who want to just try this out follow these steps.
Open notepad>copy and paste the code>save it with the extension .html>open a new tab in your broweser> got to file>open file> look for the file.
PHP:
<script type=text/javascript>
var name=prompt(What is your name?);
alert(hello +name+ how are you today?);
var answer=promt(How are you today? answer with good or bad only);
if(name1=good)
{
alert(Thats good to hear);
}
else(answer=bad)
{
alert(Aww, sorry to hear)
}
</script>
The problem is with this:
PHP:
var name=prompt(What is your name?);
alert(hello +name+ how are you today?);
once i enter my name it should continue onto this line:
PHP:
var answer=promt(How are you today? answer with good or bad only);
But it doesn't the script ends, any ideas?
And for any of you who want to just try this out follow these steps.
Open notepad>copy and paste the code>save it with the extension .html>open a new tab in your broweser> got to file>open file> look for the file.