Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | |
2 | |||
3 | |||
17 | |||
18 | |||
19 | |||
20 |
|
||
21 |
|
||
22 | |||
23 | The insertCell() method inserts an empty TD cell into this row. |
||
24 | If index is -1 or equal to the number of cells, the new cell is |
||
25 | appended. |
||
26 | |||
27 | |||
28 | Retrieve the fourth TR element and examine the value of |
||
29 | the cells length attribute which should be set to six. |
||
30 | Check the value of the last TD element. Invoke the |
||
31 | insertCell() with an index of negative one |
||
32 | which will append the empty cell to the end of the list. |
||
33 | Check the value of the newly created cell and make sure it is null |
||
34 | and also the numbers of cells should now be seven. |
||
35 | |||
36 |
|
||
37 |
|
||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | !DOCTYPE>!-- |