document.getElementById("tt")不是集合,只是单一元素,和以前的IE的概念不同

解决方案 »

  1.   

    但是document.getElementById("tt")返回的是object啊,它有自己的属性啊.
      

  2.   

    alert(document.getElementById("tt").childNodes[0]);
      

  3.   

    <TABLE>
    <TR>
    <TD id=tt><font id=ff>ss</font></TD>
    </TR>
    </TABLE>
    <button onclick="alert(document.getElementById('tt').firstChild);">test</button>
      

  4.   

    在 NS里支持哪些属性和对象,请参考http://devedge.netscape.com/library/xref/2002/client-data/dom-html-element-A.html