My html page is currently loading with an array of arrays, from previous redirect. Each element in the array should be rendered on a table.
So for example the array is [[h1,h2,h3,1,2,3,4,5,6], [h1,h2,h3,7,8,9,10,11,12]]
The first table should look like this
h1 h2 h3
1 2 3
4 5 6
Similarly the others.
Below is the html formatting of the table.
<table style="width:50%">
<tr>
<th><font color="black"><b>h1</b></font></th>
<th><font color="black"><b>h2</b></font></th>
<th><font color="black"><b>h3</b></font></th>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</table>
<br>
How can I make a javascript function such that on loading the page it renders all the data in the array in the html table format as mentioned above.
Thank you for your input and time.