Try using the setTimeout() method.