## HTML DOM onsuspend Event
The `onsuspend` event occurs when the browser intentionally stops fetching media data (such as audio or video) before the resource is completely downloaded. This typically happens because the browser has buffered enough media data to ensure smooth playback, or because the download has been paused to save bandwidth.
---
## Syntax
You can register the `suspend` event handler in three ways:
### In HTML
```html
```
### In JavaScript
```javascript
object.onsuspend = function() {
myScript();
};
```
### In JavaScript using `addEventListener()`
```javascript
object.addEventListener("suspend", myScript);
```
> **Note:** The `addEventListener()` method is not supported in Internet Explorer 8 and earlier versions.
---
## Technical Details
| Property | Value |
| :--- | :--- |
| **Bubbles** | No |
| **Cancelable** | No |
| **Event Type** | `Event` |
| **Supported HTML Tags** | `