<!DOCTYPE html>
<html>
<body>
<h1>Demo: alert()</h1>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert("Button clicked successfully !");
alert(true);
}
</script>
</body>
</html>