Possible Duplicate:
Is there some way to introduce a delay in javascript?
On my website I use a modal popup for visitors to enter some info before they can enter the website. I use a script found here which I really appreciate because it seems to work on every browser (also the ones without position:fixed support).
So when you visit my website you click on this link and because of the
onclick="ShowModalPopup('dvPopup'); return false;"
the window pops up - works perfectly.
However, I want the window to popup automatically say 3 seconds after the website is loaded. I would like to use this script for the popup so I'm looking for a way to execute the onclick after 3 seconds.