When I use window.open("file") then it'll open the file as a new tab. I already tried .load but it doesn't work either. You may know how to solve my problem that the html file loads directly in the running window ?
function progress() {
   var prg = document.getElementById('progress');
   var percent = document.getElementById('percentCount');
   var counter = 5;
   var progress = 25;
   var id = setInterval(frame, 64);
   function frame() {
      if (counter == 100) {
          clearInterval(id);
          window.open("welcome.html")
      } 
      else {
          progress += 5;
          counter += 1;
          prg.style.width = progress + 'px';
          percent.innerHTML = counter + '%';
      }
   }
}
progress();
 
     
     
    