1、框架页中,给top对象加上ID
<frame id=top name="main" scrolling="no" noresize target="main" src="new_page_3.htm">
<frame name="left" src="new_page_4.htm">
2、在left的button中用<input type=button onclick=getVal(parent.top.form1.fact_no.value)>3、在left中加入以下JS脚本
<script>
function getVal(val){
alert(val);//这里显示input中的值。
}
</script>
<frame id=top name="main" scrolling="no" noresize target="main" src="new_page_3.htm">
<frame name="left" src="new_page_4.htm">
2、在left的button中用<input type=button onclick=getVal(parent.top.form1.fact_no.value)>3、在left中加入以下JS脚本
<script>
function getVal(val){
alert(val);//这里显示input中的值。
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货