HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onsuspend Attribute

HTML onsuspend Attribute



The onsuspend attribute is used to define a script to run when the browser is intentionally not getting media data. This happens because the downloading is either complete or get paused.


Events similar to onsuspend are:-


  • onabort
  • onemptied
  • onerror
  • onstalled


Used With:-


Elements Event
audio onsuspend
video onsuspend




Its syntax is:- < element onsuspend="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML