function cal_dblclick() {
window.parent.frames['right'].document.all(window.parent.frames['right'].document.all("myCal").className).value=cal.year + "/" + cal.month + "/" + cal.day;
window.parent.frames['right'].document.all("myCal").style.visibility="hidden";
}
------------------------------------------------------
window.parent.frames.right.document为空或不是对象。
?注:right为框架
window.parent.frames['right'].document.all(window.parent.frames['right'].document.all("myCal").className).value=cal.year + "/" + cal.month + "/" + cal.day;
window.parent.frames['right'].document.all("myCal").style.visibility="hidden";
}
------------------------------------------------------
window.parent.frames.right.document为空或不是对象。
?注:right为框架
window.parent.frames['right'].document.all("myCal").style.visibility="hidden";
}============================
我用的就是window.parent.frames['right']
改为:
window.parent.right
更多资料:http://www.34v.com
</iframe>
</td>
<td width="111" bgcolor="#2A4D9A" style="WIDTH: 7pt"><table border="0" cellpadding="0" cellspacing="0" height="100%">
<tbody>
<tr>
<td onClick="switchSysBar()" style="CURSOR: hand;HEIGHT: 100%"><span class="navPoint" id="switchPoint" title="关闭/打开左栏"><img src="images/go_left.gif" name="barimg" width="7" height="49" border="0"></span>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" valign="top" style="WIDTH: 100%"><iframe frameborder="0" name="right" src="BK.aspx" style="VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
designtimedragdrop="32"></iframe>左侧菜单页:
<TD> <A href="Quote_trans/QuoteTrans_CustomQuery.aspx"
target="right">转化图综合查询</A></TD>
window.parent.document.all.frames['right']
試試
window.parent.document.frames['right']
原因可能是你用的iframe和frame不在同一標簽裏,你的代碼是寫在iframe的頁面left.aspx裏的?
还是不对!
<script>
var wndSon;
</script>
<Iframe src="test.htm" id="test" width="250" height="200" scrolling="no" frameborder="1"></iframe>
<input type="button" value="控制子窗口" onclick="wndSon.all['myH1'].innerText='hello, this is son window';">
<h1 id="myH2">hello!!!</h1>
--子窗口 test.htm
<html>
<body>
<h1 id="myH1">hello!!</h1>
<input type="button" value="控制父窗口" onclick="parent.myH2.innerText='hello! this is parent window';">
</body>
</html>
<script>
parent.wndSon=document;
</script>
照这个思路试试