title: i want get string from Input text field and compare to some string, if it�s true send to some url
body: <p>i still have problem in my code. i want the Java get the string froom the input text field and compare to another string, it´s true, send to some url. i did this code, but it doesn´t work.</p>
  
  <pre><code>&lt;input type="text" name="procura" id="pro" value="" /&gt;
  
  
   &lt;script language="JavaScript"&gt;
   function ver(){
      var pp = document.getElementById('pro').value;
    if (pp.equals('advogados'))
   {
       window.location = "http://www.jornalexemplo.com.br"
       //do something
   };
   };
  
  
    &lt;/script&gt;
  
    &lt;/div&gt;&lt;/td&gt;
                      &lt;td width="399"&gt;&lt;input type="submit" name="Busca" id="Busca"    value="AWR Procura" onsubmit="ver()"; /&gt;&lt;/td&gt;
  </code></pre>