ErrorEvent: colno-Eigenschaft
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die schreibgeschützte Eigenschaft colno
des ErrorEvent
Schnittstelle gibt eine Ganzzahl zurück, die die Spaltennummer der Skriptdatei enthält, in der der Fehler aufgetreten ist.
Wert
Eine Ganzzahl.
Beispiele
js
window.addEventListener("error", (ev) => {
console.log("The error occur in column: " + ev.colno);
});
Spezifikationen
Specification |
---|
HTML # dom-errorevent-colno |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
colno |
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.