title: Unable to compare two Strings in javascript
body: <p>I am trying two compare two strings in JavaScript. But I guess there is some problem while comparing.  It doesn't show the results. </p>
  
  <pre><code>if(ajaxRequest.readyState == 4){
  
      var msg = ajaxRequest.responseText;
      var fld = document.getElementById("prtCnt");
      if(msg == "false") {
          var msg = "This User Name is already taken !!!!";
          fld.className = "bp_invalid";
          //   fld.style.color=green;
          fld.innerHTML=msg;
      }
  </code></pre>
  
  <p>Can any body tell me where the problem is?  Thanks.</p>