Java Reference
In-Depth Information
docNavigate.appendChild(thElem); //Adds the thead element
docNavigate = docNavigate.firstChild; //Moves to the thead element
docNavigate.appendChild(trElem1); //Adds the TR element
docNavigate = docNavigate.firstChild; //Moves the TR element
docNavigate.appendChild(tdElem1); //Adds the first TD element in the
// heading
docNavigate.appendChild(tdElem2); //Adds the second TD element in the
// heading
docNavigate.appendChild(tdElem3); //Adds the third TD element in the
// heading
docNavigate = docNavigate.firstChild; //Moves to the first TD element
docNavigate.appendChild(textNodeA1); //Adds the second text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeA2); //Adds the second text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeA3); //Adds the third text node
docNavigate = docNavigate.parentNode; //Moves back to the TR element
docNavigate = docNavigate.parentNode; //Moves back to the thead element
docNavigate = docNavigate.parentNode; //Moves back to the table element
docNavigate.appendChild(tbodyElem); //Adds the tbody element
docNavigate = docNavigate.lastChild; //Moves to the tbody element
docNavigate.appendChild(trElem2); //Adds the second TR element
docNavigate = docNavigate.lastChild; //Moves to the second TR element
docNavigate.appendChild(tdElem4); //Adds the TD element
docNavigate.appendChild(tdElem5); //Adds the TD element
docNavigate.appendChild(tdElem6); //Adds the TD element
docNavigate = docNavigate.firstChild; //Moves to the first TD element
docNavigate.appendChild(textNodeB1); //Adds the first text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeB2); //Adds the second text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeB3); //Adds the third text node
docNavigate = docNavigate.parentNode; //Moves back to the TR element
docNavigate = docNavigate.parentNode; //Moves back to the tbody element
docNavigate.appendChild(trElem3); //Adds the TR element
docNavigate = docNavigate.lastChild; //Moves to the TR element
docNavigate.appendChild(tdElem7); //Adds the TD element
docNavigate.appendChild(tdElem8); //Adds the TD element
docNavigate.appendChild(tdElem9); //Adds the TD element
docNavigate = docNavigate.firstChild; //Moves to the TD element
docNavigate.appendChild(textNodeC1); //Adds the first text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeC2); //Adds the second text node
docNavigate = docNavigate.nextSibling; //Moves to the next TD element
docNavigate.appendChild(textNodeC3); //Adds the third text node
</script>
</body>
</html>
Search WWH ::




Custom Search