<head>
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LdNRgUrAAAAAEp0QReDxPr_7oM3B6BTLx6OIGQF"></script>
<!-- Your code -->
</head>
<script>
function onClick(e) {
e.preventDefault();
grecaptcha.enterprise.ready(async () => {
const token = await grecaptcha.enterprise.execute('6LdNRgUrAAAAAEp0QReDxPr_7oM3B6BTLx6OIGQF', {action: 'LOGIN'});
});
}
</script>