javascript:访问iframe中的js函数
代码
<a href="#" onclick="window.frames['frame1'].MyNext()">aa</a>
<iframe id="frame1" src="print.html" ></iframe>
print.html 页面
<script language="javascript" type="text/javascript">
function MyNext()
{
alert(1);
}
</script>
<iframe id="frame1" src="print.html" ></iframe>
print.html 页面
<script language="javascript" type="text/javascript">
function MyNext()
{
alert(1);
}
</script>