<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click the button and wait for 3 seconds.</p>
<button onclick="myFunction()">Click Me</button>
<script>
function myFunction(){
setTimeout(function(){
alert("I'm 3 seconds delay");
},3000)
}
</script> </body>
</html>