覆盖了自然就没有了,这你也知道。不知你想干什么
win.document.all.title.innerHTML = this.title;
的意义是什么?

解决方案 »

  1.   

    我已经在DEV-CLUB上等你好久了,是这样的,我正把你的NETBOOK研究。我只是想open不要打开一个新窗口。在最早的一个版本里有这样的一段程序:
    function popwin(key) {
      var conn = connect();
      var rs = conn.Execute("select * from data where id="+key);
      this.title = formString(rs("title"));
      this.content = formString(rs("content"));
      conn.Close();
      this.win= open("view.htm","","height=450,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
      /**
       * 函数: see
       * 功能: 回调函数,由弹出式窗口的onLoad调用
       *       在弹出式窗口中显示内容
       */
      this.see = function() {
        win.document.title = "精华文章";
        win.document.all.title.innerHTML = this.title;
        win.document.all.content.innerHTML = this.content;
      }
    }我提问的程序就是这个部分。