<HTML>
<HEAD>
<title>DevalVR - InvokeOtherWindowFunction</title>
<script>
    var w;
    function Openup()
    {
        w=window.open("Mapper.html","Mapper");    

                     //MapperList()是定义在Mapper.html中的一个构造函数
        var vMapperList=new w.MapperList();
    
        vMapperList.addElement(10,10,"a1");
        vMapperList.addElement(20,20,"a2");    
        
        alert(vMapperList.findName(10,10)+'\n'+vMapperList.findName(20,20));    
    }    
</script>
</HEAD>

<BODY>
<form>
    <input type="button" value="Open" onclick="Openup();">
</form>
</BODY>
</HTML>

大家看,我在这个窗口中设定了一个按钮“open”,点击后调用函数Openup();在该函数中打开了一个新的窗口,并调用那个html文件下的函数MapperList(),结果不行,我又试验了,w.frames[0].MapperList(),还是不行的。