You look at a small section of my writing:
<!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 runat="server">
<title>ÃñêÃâó</title>
<script language="javascript">
function fun1()
{
var button=document.getElementsByName("mybutton");
alert(button.length);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="radio" name="mybutton" />
<input type="radio" name="mybutton" />
<input type="button" name="submit" onclick="fun1()" />
</div>
</form>
</body>
</html>
|