weidagang2046的专栏

物格而后知致
随笔 - 8, 文章 - 409, 评论 - 101, 引用 - 0
数据加载中……

'parentWindow' Example

<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.parentWindow.frames.length);
    }
</script>
<input type="button" 
       value="How many frames in this window?" 
       onclick="function1();">
</body>
</html
>

from:
http://www.java2s.com/Code/JavaScriptReference/Javascript-Properties/parentWindowExample.htm

posted on 2006-11-21 09:59 weidagang2046 阅读(280) 评论(0)  编辑  收藏 所属分类: Javascript


只有注册用户登录后才能发表评论。


网站导航: