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