Can I allocate a text box in the html page itself to mirror console.log
* ?
<html><body>
<script type="text/javascript">
function btnclick(id)
{
console.log(document.getElementById(id).value);
}
</script>
<table>
<td><input type="button" value="7" id="btn7" onclick="btnclick('btn7');"/></td>
<td><input type="button" value="8" id="btn8" onclick="btnclick('btn8');"/></td>
<tr>
<td><input type="button" value="4" id="btn4" onclick="btnclick('btn4');"/></td>
<td><input type="button" value="5" id="btn5" onclick="btnclick('btn5');"/></td>
</tr>
</table></body></html>
*console.log
here simply echoes the pressed number