Compare string value in if statement
<HTML> <HEAD> <SCRIPT language="JavaScript"> var thesport="Golf"; if(thesport=="Football") { alert("Yes"); }else{ alert("No"); } </SCRIPT> </HEAD> <BODY> </BODY> </HTML>