i want to run similar task for my site. I want to run javascript code when user visit or click my URL, the code should be run after 2 seconds automatically after loading my page. Please help.

1 Answers

0
the_ultimate_developer On

You can use below code

window.onload = function() {
    setTimeout(function() {
        your functions()
    },2000);
}

Onload function is called after page load complete and setTimeout is used for delayation