当前位置:编程学习 > 网站相关 >>

iframe嵌套父页面访问子页的方法

<html>
<head>
<script type="text/javascript">
 function show()
 {
  window.frames[0].Two(123);
 }
</script>
</head>
<body>
<input type="button" value="调用iframe里面的js" onclick="show();"/>
<iframe src="./test01.html"></iframe>
</body>
</html>

 

 

 

 

 

 

<html>
<head>
<script type="text/javascript">
function test(){

 window.open('','','fullscreen=1');
}
</script>
</head>
<body>
<input type="button" value="测试" onclick="test()">
ddd
</html>

 

 

 

 

 

 

 

补充:Web开发 , 其他 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,