I am curious to know why when inserting the id directly into the onclick function, the table is being called again?
function See(table){
console.log(table); // how does the system automatically detect the element?
}
<table id='iamtable' border="1">
<thead>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th></th>
</thead>
<tbody>
<tr>
<td>Value</td>
<td>Value</td>
<td>Value</td>
<td><button onclick='See(iamtable);'>press me</button>
</tr>
</tbody>
</table>