Originariamente inviato da killer
fantastico. funziona....
Ho docuto usare i DIV xkè se metto una tabella mi crea un sacco di problemi.
Non è che sai come aiutarmi??
Come hai fatto implica che devi settare un id ad ogni elemento. Con lo script che allego non passi più l'id ma l'oggetto dhtml.

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function test(Obj) {
 var i = 0;
 for(i=0;i<Obj.children.length;i++) {
  var theObj = Obj.children(i);
  alert('Ctrl ' + i + ' = ' + theObj.id + ' - ' + theObj.tagName + ' - ' + theObj.type);
  if(theObj.children.length>0) {
   test(theObj);
  }
 }
}

//-->
</script>

</head>
<body>
<Form name="MainForm" id="MainForm" Action=# Type=POST>

<table summary="">
<tr>
<td><Input Type=text id=a></td>
</tr>
<tr>
<td><Input Type=text id=b></td>
</tr>
<tr>
<td><Input Type=text id=c></td>
</tr>
<tr>
<td><Input Type=button Id=Submit Value=Send onClick="javascript:test(document.getElementById('MainForm'));"></td>
</tr>
</table>
</Form>

</body>
</html>