DOM - tables

Hi there,

<HTML>
<HEAD>
<TITLE>test</TITLE>
<SCRIPT LANGUAGE="JavaScript1.2">
function MainFunction() {
	document.open();
	document.writeln();
	document.close();
}
</SCRIPT>
</HEAD>
<BODY onLoad="MainFunction()">
<TABLE ID="Kalender" BORDER="1" WIDTH="100%">
  <TR>
   <TD width="100%" COLSPAN=7>Augustus 2002</TD>
  </TR>
  <TR>
    <TD WIDTH="50%">TestCell_1</TD>
    <TD WIDTH="50%">TestCell_2</TD>
  </TR>
</TABLE>
</BODY>
</HTML>

If I Want to dynamically extend the given table "Kalender" with additional rows via the MainFunction script I cannot do this by simply using document.writeln("<TR><TD>") etc.
Can I access the table via the DOM and then have a kind of method to add a row and set the properties ?? The DOM is dealing with Window, Document etc. but I do not find for instance a Table object.

Has anyone got any suggestions to help me solving this issue ?

Patrick van den Bemt 

Received on Wednesday, 11 September 2002 05:34:38 UTC