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