<iframe id="showOcx" name="showOcx" style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank">
<script type="text/javascript">
function alertMsg(){
alert(1);
}
</script>
<div class="vioxy">
<object id="ocx1" width="619px" height="494px" classid="CLSID:FD3BEB0C-AB43-4253-9146" codebase='web.cab#version=1,0,0,0'><param name='Language' value='SimpChinese'></object>
</div>
</iframe>我在当前的这个父页中怎么调用 iframe中的方法啊?window.frames["showOcx"].alertMsg(); 这样没成功!
<script type="text/javascript">
function alertMsg(){
alert(1);
}
</script>
<div class="vioxy">
<object id="ocx1" width="619px" height="494px" classid="CLSID:FD3BEB0C-AB43-4253-9146" codebase='web.cab#version=1,0,0,0'><param name='Language' value='SimpChinese'></object>
</div>
</iframe>我在当前的这个父页中怎么调用 iframe中的方法啊?window.frames["showOcx"].alertMsg(); 这样没成功!
你写的“src="about:blank"”,所以输出为空~空的document哪来什么function能被调用~