<html>
<body>
<script language="JavaScript">
function showFocus(){
console.log("Focus set on Box 1");
}
</script>
<form name="form1">
Click on the radio button
<br><br>
<input type="radio" name=button1 onFocus='showFocus()'>Box 1
</form>
</body>
</html>