Forum

Settimeout jquery -...
 

[Solved] Settimeout jquery - How to use jquery set timeout on page load


(@Anonymous 2590)
New Member Guest
Joined: 2 years ago
Posts: 2
Topic starter  

Hi,

How can I use Jqurty set timeout function on page load.


   
Quote
Topic Tags
(@niraj)
New Member
Joined: 2 years ago
Posts: 4
 

To use jQuery set time out function, you can directly call set timeout function in your code. Please find below code for your reference.

setTimeout(ShowAlertMessage, 5000);
	function ShowAlertMessage()
	{
		alert('Hello');
	}

ShowAlertMessage function will be executed after 5 sec.


   
ReplyQuote
(@Anonymous 2590)
New Member Guest
Joined: 2 years ago
Posts: 2
Topic starter  

Thanks Niraj.

 


   
ReplyQuote
Share: