Alguém sabe um método, e como faze-lo, para inverter textos (se não me engano, chama-se string) ? [cba] < eu digitei imasters nesse textfield (tá não é um textifield kkk) [abc] < e assim sairia no segundo textfield . pelo o pouco resultado que consegui quando pesquisei, tem que ser em js né ? meu código: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>
<input type="text" name="tex1" id="tex1" />
< DIGITE O CONTEÚDO AQUI
</p>
<p>
<label>
<input type="text" name="text2" id="text2" />
</label>
< SAÍDA</p>
</form>
</body>
</html>