closes #990
This commit is contained in:
parent
da3ba6a072
commit
809cebcd04
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ setTimeout(() => { clearInterval(timerId); alert('stop'); }, 5000);
|
|||
```smart header="Time goes on while `alert` is shown"
|
||||
In most browsers, including Chrome and Firefox the internal timer continues "ticking" while showing `alert/confirm/prompt`.
|
||||
|
||||
So if you run the code above and don't dismiss the `alert` window for some time, then in the next `alert` will be shown immediately as you do it. So the actual interval between alerts will be shorter than 5 seconds.
|
||||
So if you run the code above and don't dismiss the `alert` window for some time, then in the next `alert` will be shown immediately as you do it. The actual interval between alerts will be shorter than 5 seconds.
|
||||
```
|
||||
|
||||
## Recursive setTimeout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue