Topic starter
09/11/2022 4:26 am
Hi,
I want to trigger function after 10 sec, every time my html page is loaded. please help me to solve issue. my function name is calculate.
Thanks in advance.
09/11/2022 4:32 am
Hi Rahul you can use JavaScript settimeout function for that, please find below code for your reference.
setTimeout(Calculate, 10000); function Calculate() { alert('Hello'); }
As you can see setTimeout function is called on page load, whenever your page is loaded, setTimeout will be activated after that on 10th sec calculate function will be executed. which will show alert with 'Hello' text. You can write your own code to it.