我的代码如下:
...................
 
    myPopupTree = window.createPopup();
    myPopupTree.document.body.innerHTML = fDrawTree();
    myPopupTree.show(left,top,278,254);
}function fDrawTree()
{    
    var CS = "";
        
    CS = CS + "<script language='javascript' src='tree1.js' ></script>"
    CS = CS + "<TABLE id='treeNode' width='300' border='0' cellpadding='0' cellspacing='0'>";
    CS = CS + "<tr>";
    CS = CS + "<td align='left'>";
    CS = CS + "<table id='tree' border=0 cellpadding=0 cellspacing=0>";
    CS = CS + "<tr>";
    CS = CS + "<td>";
    CS = CS + "<script defer='defer'>";
    CS = CS + "var Tree = parent.Tree;";
    CS = CS + "alert(parent.Tree);";
    CS = CS + "createTree(Tree,null,0,'类别分组');";
    CS = CS + "</script>";
    CS = CS + "</td>";
    CS = CS + "</tr>";
    CS = CS + "</table>";
    CS = CS + "</td>";
    CS = CS + "</tr>";        
CS = CS + "</TABLE>";

return CS;
}想在pop窗口引用'tree1.js' 文件中的createTree()函数,可就是不行,弹出窗口显示一白板,也没报错。在alert();中可以看到数组parent.Tree是有值的。