Home > front end >  Video. The load () loop for page refresh is prohibited
Video. The load () loop for page refresh is prohibited

Time:12-14



Window. The addEventListener (' load ', function () {
Var screenVideo=document. GetElementById (' screenVideo ')
ScreenVideo. AddEventListener (' ended ', function () {
ScreenVideo. The load ();
ScreenVideo. Play ();
return false;
}, false);
});


This will refresh the entire page, could you tell me how to prohibit
Sorry only have 30 points

CodePudding user response:

Without a page refresh function in the code above,

CodePudding user response:

reference 1st floor chinaskysun response:
no refresh the page function, the code above

Is not, but every time after completion of the video playback, page will refresh, don't know what
  • Related