<!--a.html-->
<form name="myform">
a<input type="radio" name="a" value="a" checked>
b<input type="radio" name="a" value="b">
c<input type="radio" name="a" value="c"
</form>
<!--B.html-->
<html>
<head>
<script language="JavaScript">
<!--
function Test ()
{
var c=document.frames['my'].myform.a
for (var i=0; i<c.length; i++)
{
if (c[i].checked)
{
alert(c[i].value+"被选中了")
break
}
}
}
//-->
</script>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<iframe src="form.html" width="150" height="100" name="my"></iframe>
<button onclick="Test()">click</button>
</body>
</html>