本帖最后由 Joyceqh 于 2009-10-16 10:36:07 编辑

解决方案 »

  1.   

    function openWindow(url, self)
    {
        window.force = new ForceWindow();
        window.force.pop(url, self);
        
    }function ForceWindow()
    {
        this.r = document.documentElement;
        this.f = document.createElement("FORM");
        this.f.target = "_blank";
        this.f.method = "post";
        this.r.insertBefore(this.f, this.r.childNodes[0]);
    }ForceWindow.prototype.pop = function(sUrl, self)
    {
        this.f.action = sUrl;
        if(self) this.f.target = "_self";
        this.f.submit();
    }
      

  2.   

    终于打开了,只是aspx文件里多了一个<body>去掉了在firefox就能打开了,很奇怪
    但是打开的子页面是一个treeview结构,选中父节点子节点却没选中?在ie中测试可以的,有没有兼容的js代码?