+ 3

STOP 🛑, wait, continue...

How do you make a script in html pause for a bit, before moving onto the next line of script? I really need this to complete a project of mine... please answer!

3rd Jul 2018, 4:50 PM
George
George - avatar
2 odpowiedzi
+ 6
Hello, George ! The setTimeout function is a native JavaScript function (although it can also be used in any library, setTimeout that calls a function, or executes some code after the specified delay (in milliseconds) .This can be useful if, for example, you want to display a pop- how the visitor stayed on the page for a certain time, or you want to add a small delay before the cursor loss handler (in case the user accidentally removes the mouse cursor). https://www.sololearn.com/learn/JavaScript/1244/?ref=app
3rd Jul 2018, 5:20 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
You can use setTimeout for execute code after (least) some time
3rd Jul 2018, 5:04 PM
KrOW
KrOW - avatar