Probably an easy Q

Results 1 to 2 of 2

Thread: Probably an easy Q

  1. #1
    Join Date
    Dec 1969

    Default Probably an easy Q

    Is there an easy way to delay an action once a situation is met?<BR><BR>Example:<BR>&#060;script&#062;<BR>func tion test()<BR>{<BR>// The delay should preferably occur here (?)<BR>alert("test");<BR>}<BR>&#060;/script&#062;<BR><BR>&#060;input type=button onclick="test();" value=test&#062;<BR><BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Probably an easy Q

    window.setTimeout(&#039alert("test")&#039, 1000) // delay is in milliseconds<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts