right 中
<input type=radio value=1 name=ice>
<input type=radio value=2 name=ice>
<input type=radio value=3 name=ice>
<input type=radio value=4 name=ice>
<span id='show'></span>
left中
<button onclick="checkRadio()">点击</button>
<script>
function checkRadio()
{
var ice = window.frames.right.document.getElementsByName("ice");
for (i=0;i<ice.length;i++)
{
if(ice[i].checked == true)
window.frames.right.document.getElementById("show").innerText = ice[i].value;
break;
}
}
</script>
<input type=radio value=1 name=ice>
<input type=radio value=2 name=ice>
<input type=radio value=3 name=ice>
<input type=radio value=4 name=ice>
<span id='show'></span>
left中
<button onclick="checkRadio()">点击</button>
<script>
function checkRadio()
{
var ice = window.frames.right.document.getElementsByName("ice");
for (i=0;i<ice.length;i++)
{
if(ice[i].checked == true)
window.frames.right.document.getElementById("show").innerText = ice[i].value;
break;
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货