<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" id="radiobutton" value="1" onclick="parent.radiobuttonclick()">
<input name="radiobutton" type="radio" value="2" checked>
<input type="text" name="textfield">
</form>
</body>
</html>----------<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
var fram2=document.getElementById("frame2").contentWindow;
alert(fram2.from1.radiobutton.checked);
或者这句写成
alert(fram2.docuemt.getElementByid("radiobutton").checked);
</script>
</head><body>
<table width="75%" height="70" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <div style="padding-left:100;padding-top:0">
<iframe src="22.htm" style="width:400;height:100;over-flow:clip" id="frame2" ></iframe>
</div></td>
</tr>
</table>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" id="radiobutton" value="1" onclick="parent.radiobuttonclick()">
<input name="radiobutton" type="radio" value="2" checked>
<input type="text" name="textfield">
</form>
</body>
</html>----------<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
var fram2=document.getElementById("frame2").contentWindow;
alert(fram2.from1.radiobutton.checked);
或者这句写成
alert(fram2.docuemt.getElementByid("radiobutton").checked);
</script>
</head><body>
<table width="75%" height="70" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <div style="padding-left:100;padding-top:0">
<iframe src="22.htm" style="width:400;height:100;over-flow:clip" id="frame2" ></iframe>
</div></td>
</tr>
</table>
</body>
</html>
如果在同一个域下到是可以实现
不太理解楼上大哥的意思
只是因为iframe里的页面是公共页面,修改了,那会影响到很多地方
所以才有这个要求