I am encountering an issue with a button that contains a link. Whenever I hover over the button, the cursor changes as expected, but clicking on the button itself does not trigger any action. Instead, I have to click on the link inside the button to redirect. How can I modify my code so that the entire button is clickable and not just the internal link?
<button class="alert alert-primary" role="alert" style="margin:30px;" onclick="window.location.href='https://www.google.com/'">
Click Me!
</button>