<html>
<body>
<form name="form1">
<input type="radio" name=button1>Box 1
<br><br>
<input type="button" value="Get Button Type"
onClick='console.log("The button type is: " + document.form1.button1.type)'>
</form>
</body>
</html>