1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<html>
<head>
<title>Document sans nom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function test(nom)
{
var tabInput = document.getElementsByName(nom);
alert(tabInput.length);
}
//-->
</script>
</head>
<body>
<form method="post" action="">
<input type="text" name="toto">
<input type="text" name="toto">
<input type="text" name="toto">
<a href="#" onclick="javascript:test('toto')">tester</a>
</form>
</body>
</html> |