GEM-I'm a dedicated Wordpress & Squarespace developer

Hide alert Message After Few Seconds With JQuery ?

Display an alert box after 20 seconds (20000 milliseconds):

To Hide alert Message use .hide in setTimeout


The setTimeout() method calls a function or evaluates an expression after a specified number of milliseconds.

Tip 1: 1000 ms = 1 second.

Tip 2: The function is only executed once. If you need to repeat execution, use the setInterval() method.

Tip 3: Use the clearTimeout() method to prevent the function from running.

<script src=""></script> 
waitingForOperator ='Custom Box Message-gemcode';
setTimeout(function () {
                                    }, 20000);

<div id="box-msg">
Spread the Code



You may also like...

Leave a Reply

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