A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/error_event below:

SVGElement: error event - Web APIs

SVGElement: error event

Baseline Widely available

The error event is fired when an SVG element does not load properly or when an error occurs during script execution.

This basically implements the standard error DOM event.

This event is not cancelable.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

addEventListener("error", (event) => { })

onerror = (event) => { }
Event type

A generic Event.

Examples
svgElem.addEventListener("error", () => {
  console.log("SVG not loaded properly.");
});
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4