Setting up delay for java script function

Discussion in 'HTML & Website Design' started by TheLasTSamuRai, Sep 14, 2009.

  1. #1
    Hi
    I beed to call this function
    <script type="text/javascript" src="lock.js" > </script>
    after like 7sec from visting the index.html.
    How can i do that?
    thanks
     
    TheLasTSamuRai, Sep 14, 2009 IP
  2. digitaltrader

    digitaltrader Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    do a search on google for 'javascript sleep', there are ready made functions that you can copy to sleep the script for xxx milliseconds. You may need to the sleep function in your .js file if you still want to use the src="lock.js".
     
    digitaltrader, Sep 15, 2009 IP