HTML onsuspend Attribute

HTML onsuspend Attribute: This attribute defines a script to run when the browser is intentionally not getting media data. This event occurs when the loading of the media is suspended (prevented from continuing). This can happen when the download has completed, or because it has been paused for some reason.

NOTE: Related events that occur when there is some kind of disturbance to the media loading process, are:

  • onabort
  • onemptied
  • onerror
  • onstalled

HTML onsuspend Attribute

This attribute can be applied on <audio> and <video> element.



Browser Support

This attribute is supported by the following browsers:

  • Chrome
  • Firefox
  • Internet Explorer-9.0
  • Safari
  • Opera