Friends i know how to create a progress bar ,but how can I use it to track the progress of loading of my program. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Friends i know how to create a progress bar ,but how can I use it to track the progress of loading of my program.

I want the progress bar to stop once the webpage is completely displayed

29th Jun 2020, 5:21 PM
Varun N
Varun N - avatar
3 Answers
+ 1
This can be stoped i.e. as follows; addEventListener('onload', function(e) { var pbar = document.getElementById("pbarDiv"); pbar.className = pbar.className.replace("show",""); }); or any how method you want to stop with, but within of above mentioned event listener.
29th Jun 2020, 8:34 PM
JaScript
JaScript - avatar
+ 1
Ja Play how does this work ,what does it do.
30th Jun 2020, 6:08 AM
Varun N
Varun N - avatar
0
The event „onload“ triggers when the web page has been loaded completely. The method you want to stop respectively remove the progress of loading shall be started with this event, as shown previously.
30th Jun 2020, 3:49 PM
JaScript
JaScript - avatar