I am working on an email verification functionality. The problem is that I want if someone clicks on the Confirm email address button then an alert should be shown up or a user should be notified the button is clicked but it does not perform any actions on my Gmail account.
What are the ways to make it work?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<center><h1>We're glad you're here</h1></center>
<center>We just want to confirm it's you.<br><br></center>
<center>
<button onclick="myFunction()">
Click to confirm your email address
</button>
<center>
<center><br>If you didn't create a proctl account, just delete this email.</center>
<script>
function myFunction() {
alert("I am an alert box!");
}
</script>
</body>
</html>