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>

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章