Javascript DOM onsuspend Event

Introduction

Execute a JavaScript when the browser is intentionally not getting media data.

In JavaScript:

object.onsuspend = function(){
       myScript};

In JavaScript, using the addEventListener() method:

object.addEventListener("suspend",
       myScript);
Bubbles: No
Cancelable: No
Event type: Event
Supported HTML tags: <audio> and <video>



PreviousNext

Related