当前位置: 代码迷 >> Web前端 >> iframe嵌套父页面访问子页的步骤
  详细解决方案

iframe嵌套父页面访问子页的步骤

热度:32   发布时间:2012-11-21 08:23:26.0
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>

 

 

 

 

 

 

 

  相关解决方案