Video pause() method

Definition and usage

pause() to pause the currently playing video.

Hint:This method is usually used with play() method use together.

Hint:Please use controls attribute Display video controls (such as play, pause, search, volume, etc.).

Example

Video with play and pause buttons:

var x = document.getElementById("myVideo"); 
function playVid() { 
  x.play(); 
} 
function pauseVid() { 
  x.pause(); 
}

Kokeile itse

Syntaksi

videoObject.pause()

Parametrit

Ei.

Paluuarvo

Ei paluuarvoa.

Selaimen tuki

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Tuki 9.0 Tuki Tuki Tuki