+ 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
3 Antworten
+ 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.
+ 1
Ja Play how does this work ,what does it do.
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.