Diff for /books/www/chapters/ch05.html between versions 1.10 and 1.11

version 1.10, 2002/12/10 16:28:03 version 1.11, 2002/12/10 16:36:11
Line 140  dump(`clone='+clone+'\n'); Line 140  dump(`clone='+clone+'\n');
 document.getElementsByTagName('box')[0];  document.getElementsByTagName('box')[0];
 document.getElementsByTagName('box')[1];  document.getElementsByTagName('box')[1];
 document.getElementsByTagName('box')[2];  document.getElementsByTagName('box')[2];
&lt;/script.</PRE>&lt;/script&gt;</PRE>
 <P>Or you can get the array and index into it like this:  <P>Or you can get the array and index into it like this:
 <PRE>var box = document.getElementsByTagName('box');</PRE>  <PRE>var box = document.getElementsByTagName('box');</PRE>
 <P>box[0], the first object in the returned array, is a XUL box.  <P>box[0], the first object in the returned array, is a XUL box.

Removed from v.1.10  
changed lines
  Added in v.1.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>