Stop script for a while.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mag_dex

    Stop script for a while.

    I have a question.
    Can you do in JavaScript sth like that:
    *
    cmd1
    statement_to_st op_script_for_e .g._2seconds, hmm.. stop(2) or sth like
    that...
    cmd2
    and so on.
    *
    Best wishes!
    Magnus
  • Janwillem Borleffs

    #2
    Re: Stop script for a while.

    mag_dex schreef:
    I have a question.
    Can you do in JavaScript sth like that:
    *
    cmd1
    statement_to_st op_script_for_e .g._2seconds, hmm.. stop(2) or sth like
    that...
    cmd2
    and so on.
    *
    The setTimeout() method of the Window interface sets a timer which executes a function or specified piece of code once the timer expires.


    Use it with a dummy function or a real function that you actually want
    to call.


    JW

    Comment

    • mag_dex

      #3
      Re: Stop script for a while.

      On Jul 4, 12:18 pm, Janwillem Borleffs <j...@jwscripts .comwrote:
      mag_dex schreef:
      >
      I have a question.
      Can you do in JavaScript sth like that:
      *
      cmd1
      statement_to_st op_script_for_e .g._2seconds, hmm.. stop(2) or sth like
      that...
      cmd2
      and so on.
      *
      >
      The setTimeout() method of the Window interface sets a timer which executes a function or specified piece of code once the timer expires.

      >
      Use it with a dummy function or a real function that you actually want
      to call.
      >
      JW
      Thanks!It seems to be exactly what I need :)

      Comment

      Working...