Forum : Message for different ages
Brief description  about Online courses   join in Online courses
View Noor  Mohammed 's Profile

Message for different ages

Hello sir,

May I please know what is wrong with this code? as am getting only first two messages not getting different messages which i have assigned.

Following is the code:

function message1() {

age = document.Age.txtAge.value

if (age < 16) {

alert("Concentrate on your studies, life is not a movie")

}


else if (age > 16) {

alert("Be with productive people")

}


else if (age < 20
Asked by Noor Mohammed | Nov 26, 2010 |  Reply now
Replies (2)
View noor mohammed 's Profile
Thank you so much for the mail sir, it was very helpful.
Nov 29, 2010
View teacher siliconindia 's Profile
Hi Noor,

Incomplete code pasted here... please try posting again... or send me a mail at vishwanath@siliconindia.com
Nov 28, 2010