Compare two strings : String comparisons : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String comparisons »

 

Compare two strings

















<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
var myVar="AA";


if(myVar=="AA") {
    window.alert("AA");
else  {
    window.alert("Not AA");
}

//-->
</SCRIPT>
</BODY>
</HTML>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» String comparisons