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.
<input type="text" name="procura" id="pro" value="" />
<script language="JavaScript">
function ver(){
var pp = document.getElementById('pro').value;
if (pp.equals('advogados'))
{
window.location = "http://www.jornalexemplo.com.br"
//do something
};
};
</script>
</div></td>
<td width="399"><input type="submit" name="Busca" id="Busca" value="AWR Procura" onsubmit="ver()"; /></td>