19 Answers
New Answer19 Answers
New AnswerYes there is a function. 🧚Somya🌹 mentioned it already. The window object allows execution of code at specified time intervals... However, you must control it with JavaScript. The two key methods to use with JavaScript are: setTimeout() setInterval() You may learn more here. https://www.w3schools.com/js/js_timing.asp
Can you explain exactly what you're attempting to do so we can better help you with your situation? When you say Web/HTML it is not clear. HTML is a markup language. WEB is an interconnected system of public webpages accessible through the Internet. HTML is constructed with the DOM. With the HTML DOM, JavaScript can access and change all the elements of an HTML document.
But what about HTML/Web thats what im looking at, I have a whole code already built out I just need delays in between lines.
If you want to execute code line by line. Then I recommend to download a IDE. Visual Studio Code is a good one. There you will be able to debug your code with a debugger. You can set breaks that will only run the code when you hit next. https://docs.microsoft.com/en-us/visualstudio/debugger/debugger-feature-tour?view=vs-2022#set-a-breakpoint-and-start-the-debugger
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message