var tablerows = document.getElementById('table1').rows
The function ‘adjustrowheight’ is called from within the HTML page. Once called, it creates an array of variable ‘tablerows’ which are then used to store each of the rows in the table.
‘Document’ is a global variable that is predefined and refers to the web page. It has a number of specific functions, one of which is ‘getElementById’. The rows characteristic extracts the table rows and stores them in the array variable.
The second line of code indicates that the first row height must be set to 100 pixels. It is possible to create a loop to increase the heights of all the rows in the table.