How to invoke a timed response?

I want to know if anyone knows how to delay a function for a few seconds. Of course anything written in a init function is loaded right away after the page is loaded. But this time I want it to invoke after 3 seconds for example. Does anyone know how to do it? Thank you!
1 person has
this question