Hi Folks,

I have the function below which creates a basic 3 row, 2 cell table. Could anyone tell me how I can create the table below, using my function?


HTML Code:
<table width="75%" border="1">
    <td rowspan="2">&nbsp;</td>
  function start() {
        // get the reference for the body
        var body = document.getElementsByTagName("body")[0];

        // creates a <table> element and a <tbody> element
        var tbl     = document.createElement("table");
        var tblBody = document.createElement("tbody");

        // creating all cells
        for (var j = 0; j <= 2; j++) {
            // creates a table row
            var row = document.createElement("tr");

            for (var i = 0; i < 2; i++) {
                // Create a <td> element and a text node, make the text
                // node the contents of the <td>, and put the <td> at
                // the end of the table row
			 var cell = document.createElement("td");    
				  var cellText = document.createTextNode("cell is row "+j+", column "+i);


            // add the row to the end of the table body

        // put the <tbody> in the <table>
        // appends <table> into <body>
        // sets the border attribute of tbl to 2;
        tbl.setAttribute("border", "2");