+ 1

Is there a delay function for going from one line of code to another line of code? Web/HTML

I’m wondering if there is a delay function for one line of code to another on Web/HTML.

4th Jul 2022, 12:25 AM
RJbologna
RJbologna - avatar
19 Antworten
+ 4
Yes 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
4th Jul 2022, 3:14 AM
Chris Coder
Chris Coder - avatar
+ 2
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.
4th Jul 2022, 3:30 AM
Chris Coder
Chris Coder - avatar
0
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.
4th Jul 2022, 12:53 AM
RJbologna
RJbologna - avatar
0
Hold on
4th Jul 2022, 12:55 AM
RJbologna
RJbologna - avatar
0
Nvm i figured it out.
4th Jul 2022, 12:58 AM
RJbologna
RJbologna - avatar
0
Wait is it ok if i use one of your codes in my code?
4th Jul 2022, 1:01 AM
RJbologna
RJbologna - avatar
0
???
4th Jul 2022, 1:27 AM
RJbologna
RJbologna - avatar
0
What was the solution to your inquiry?
4th Jul 2022, 2:42 AM
Chris Coder
Chris Coder - avatar
0
I thought i had it but i was wrong.
4th Jul 2022, 2:43 AM
RJbologna
RJbologna - avatar
0
I still don’t know how to set a delay. Do you Chris Coder?
4th Jul 2022, 2:47 AM
RJbologna
RJbologna - avatar
0
Ok i’ll try it.
4th Jul 2022, 3:21 AM
RJbologna
RJbologna - avatar
0
So can I not use Web/HTML then?
4th Jul 2022, 3:21 AM
RJbologna
RJbologna - avatar
0
Web
4th Jul 2022, 3:34 AM
RJbologna
RJbologna - avatar
0
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
4th Jul 2022, 3:39 AM
Chris Coder
Chris Coder - avatar
0
Ok i’ll try it.
4th Jul 2022, 3:44 AM
RJbologna
RJbologna - avatar
0
You can use JS to setTimeout
5th Jul 2022, 4:52 AM
SoumyaK4
SoumyaK4 - avatar
0
How to add image in web/HTML
5th Jul 2022, 3:08 PM
Darshana Behere
Darshana Behere - avatar