title: How to compare symbols in javascript
body: <p>How to I compare symbols in javascript? I have a left arrow in my program and this is not working:</p>
  
  <pre><code>&lt;input type="button" id="backspace" value="&amp;#8592" /&gt;
  document.getElementById("backspace").onclick=function (){display_ctrl(this.value);};
  function display_ctrl(parameter){
        if (parameter=="&amp;#8592"){alert("this is a left arrow");}
  </code></pre>
  
  <p>How can I compare whether it is particular symbol?</p>