mas o problema é que tudo que está na tag <body onload= "java script: fazTalCoisa()"></body>
ele nao executa esse javascript, alguém sabe por que??????
fiz um teste... coloquei o mesmo script fazTalCoisa() no onclick dentro do botao do form1.... ai ele consegue fazer.....
mas o problema é q tenho q executar ele no body onload mesmo....
alguma ideia??????? pode ser louca.. hehe
<!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>
<script src="funcoes.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body onload="java script: Mascara('form1'); EnterComoTab(); ">
<form id="form1" method="post" action="">
<table width="300">
<tr>
<td> </td>
<td><input name="data" type="text" /></td>
</tr>
<tr>
<td> </td>
<td><input name="letra" type="text" /></td>
</tr>
<tr>
<td> </td>
<td><input name="fone" type="text" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit" onclick="java script: alert('teste');"/></td>
</tr>
</table>
</form>
</body>
</html>
Edição feita por: pearljam, 24/11/2006, 11:41.










