首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

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

2012-11-21 
iframe嵌套父页面访问子页的方法htmlheadscript typetext/javascript function show() {window.f

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>

 

 

 

 

 

 

 

热点排行