|
January 10, 2001 The Document's First Child Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
Internet Explorer does not support the firstChild property of the document object. In Netscape 6, the document object's first child (as well as its last child) is HTML. Click this button in Netscape 6, and see for yourself. Click in Internet Explorer and observe the error message:Examine its last child: The properties firstChild and lastChild are defined by the Document Object Model (DOM). Learn more about the DOM in Columns 40, The DOM, Part I: Analysis, through Column 47, A DOM-Based Snakes Game, Part II.
People who read this tip also read these tips: Look for similar tips by subject: |