ErrorEvent: message-Eigenschaft
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die schreibgeschützte message
-Eigenschaft des ErrorEvent
-Interfaces gibt einen String zurück, der eine menschenlesbare Fehlermeldung enthält, die das Problem beschreibt.
Wert
Ein String.
Beispiele
js
window.addEventListener("error", (ev) => {
console.log("The error message: " + ev.message);
});
Spezifikationen
Specification |
---|
HTML # dom-errorevent-message |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
message |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.