Display Alert box after 10 Seconds using JavaScript setTimeout() Method

The setTimeout method in JavaScript evaluates an expression after specified number of milliseconds and executes only once .

How to display Alert box after 10 Seconds using JavaScript setTimeout() Method

For example , if you want to display an alert message to the user after 10 seconds , you can use the below code snippet.

<script>
setTimeout(function(){alert("Ginktage.com")},10000);
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *