HTML CSS Javascript jQuery AJAX PHP Java MORE

How to success message in Javascript

<!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>


Run it yourself