top.window.document.getElementById("d"+Parentid).innerHTML=Inside;你也要看
top.window.document.getElementById("d"+Parentid)
返回的对象是不是null和undefined啊。

解决方案 »

  1.   

    1.表里原先就创建的元素貌似不能通过innerHTML删除掉
    不然你试document.onclick=function(){
      top.document.getElementById("d96").innerHTML="";
        //AddTreeDiv(96,'动作片',190);
        //DelTreeDiv(96)
      }
    这个我也想知道为什么2.还有,top本身就是window的引用了,干嘛还要写top.window?
      

  2.   

    table不能直接设置innerHTML 的请使用table.insertRow(rowIndex)插入行TableRow.insertCell(cellIndex)插入单元格